-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling PSR, analytical diff with pytorch and moving interfaces to dedicated module #42
Open
MatteoRobbiati
wants to merge
39
commits into
main
Choose a base branch
from
diffrules
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
bed5146
feat: psr draft
MatteoRobbiati 309a26a
refactor: use nshots value to choose if use samples or not
MatteoRobbiati 5871804
fix: expectation decoding test
MatteoRobbiati c1534e1
working on an example using PSR
MatteoRobbiati 687e843
feat: PSR working but x is padded
MatteoRobbiati e015b86
reminder about diffrule
MatteoRobbiati fa83ef2
docs: tutorial on models
MatteoRobbiati ea51b91
Merge branch 'model' into diffrules
MatteoRobbiati a412b5e
fixing PSR and moving interfaces to qiboml.interfaces
MatteoRobbiati bb7d7a0
test: add diffrules test
MatteoRobbiati 5880001
refactor: moving interfaces to proper module
MatteoRobbiati 6110339
chore: add qibojit to test deps
MatteoRobbiati c5af099
chore: tf and torch are not optional
MatteoRobbiati 1b75cae
tests: rm tf import
MatteoRobbiati bd228bc
fix: adapting PSR padding to expval shape
MatteoRobbiati a9e2481
test: enable PSR test in test_models_interface
MatteoRobbiati 46de4e9
test: fix seed in diffrules test
MatteoRobbiati 69b8f12
feat: analytic as property
MatteoRobbiati 52ec4cd
chore: set optional == True for tf and torch in our deps
MatteoRobbiati 2e341f1
fix: rm unused __init__ method from PSR class
MatteoRobbiati 9bdf627
fix: adapt padding to x shape
MatteoRobbiati 16df115
fix: remove useless passed qubits list
MatteoRobbiati d279f13
tests: fix diffrules tests grad calculation
MatteoRobbiati 1842a1d
Update tests/test_models_interfaces.py
MatteoRobbiati 5ae1ade
tests: adapt interfaces tests to analytical as property
MatteoRobbiati 7552520
Merge branch 'diffrules' of github.com:qiboteam/qiboml into diffrules
MatteoRobbiati ae04a26
chore: restoring tf and torch non-optional because of lint complainings
MatteoRobbiati 921485f
tests: increase nshots in diffrules test
MatteoRobbiati 590cf5c
fix random seed in diffrules tests
MatteoRobbiati 45b2063
Update src/qiboml/models/decoding.py
MatteoRobbiati 55f7a06
chore: updating lock after merging main to solve conflicts
MatteoRobbiati 208ea10
feat: add gates_encoding_feature method
MatteoRobbiati eac535e
feat: drafting gradient wrt data
MatteoRobbiati 6e3870d
fix: working derivative wrt x
MatteoRobbiati 3a8e66f
refactor: moving gradient wrt data into a method of PSR class
MatteoRobbiati 1c0c3c8
fix: rm gates_encoding_feature from abstractmethods
MatteoRobbiati f8d944a
Update src/qiboml/operations/differentiation.py
MatteoRobbiati 73dd6c7
test: reducing decimals in PSR test
MatteoRobbiati 824613f
fix: wrt --> from in psr
MatteoRobbiati File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question, this has to be computed every time, right? There is no way of caching it, because it depends on the value of the parameter, right?