-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ProjectorSum object for TFQ #4364
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
Merged
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
0339829
First retry at projectors
tonybruguier a5ac063
Delete soon-to-be-useless tests
tonybruguier e428f58
Delete more useless tests
tonybruguier 3f61ecd
Remove ability to use tuples
tonybruguier 6b13d7e
Restrict to only integer, still TODO to make it sparse
tonybruguier 9a1de0c
Now only using integers
tonybruguier 420d2c7
Some nits
tonybruguier e419db3
nit
tonybruguier b798ed7
Skeleton for ProjectorSum
tonybruguier d4600d7
JSON serialization
tonybruguier c648299
With multiplication
tonybruguier 60b1846
Operations
tonybruguier f8fc7b4
Merge branch 'master' of github.com:quantumlib/Cirq into projector_st…
tonybruguier 69965e3
Fixes
tonybruguier 6027dbc
Merge branch 'master' of github.com:quantumlib/Cirq into projector_st…
tonybruguier 6c0da89
Factor out ProjectorSum
tonybruguier 33ff2c9
sparse
tonybruguier 89d2b35
Delete dead code
tonybruguier fd63c73
Merge branch 'master' of github.com:quantumlib/Cirq into projector_st…
tonybruguier a9281df
Revert "Factor out ProjectorSum"
tonybruguier 7d3b8ed
Fix unit test
tonybruguier 887ae7f
matrix() return sparse matrix
tonybruguier 846af79
Coeff, random state vector in testing
tonybruguier e8d8374
Only qubits
tonybruguier df91f9e
Faster expectations
tonybruguier 1cfecaf
docstrings
tonybruguier 123a02c
Merge branch 'projector_strings' into projector_sums
tonybruguier 23ff98e
Fix more merge issues
tonybruguier 3db11fa
Bug fix with coefficient
tonybruguier 20b2284
Merge branch 'master' of github.com:quantumlib/Cirq into projector_st…
tonybruguier bc6df8d
Merge branch 'projector_strings' into projector_sums
tonybruguier 02e512f
Docstrings
tonybruguier 2623804
Fix docstring
tonybruguier e77642c
Merge branch 'projector_strings' into projector_sums
tonybruguier 7363b90
Fix docstring
tonybruguier b340c01
Merge branch 'master' of github.com:quantumlib/Cirq into projector_st…
tonybruguier 53cdf51
Merge branch 'projector_strings' into projector_sums
tonybruguier 557a1df
Merge branch 'master' of github.com:quantumlib/Cirq into projector_st…
tonybruguier c9a0fca
Address some of the comments
tonybruguier e1d0130
Merge branch 'projector_strings' into projector_sums
tonybruguier 6680935
Change output type
tonybruguier a6071c6
More test
tonybruguier b28ef4b
Merge branch 'projector_strings' into projector_sums
tonybruguier c06648e
Merge branch 'master' of github.com:quantumlib/Cirq into projector_st…
tonybruguier dcf1997
Simplify how to get 'idx_to_keep'
tonybruguier 14d3717
Merge branch 'projector_strings' into projector_sums
tonybruguier d2c408f
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 3b903a6
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 5d53ca9
subtraction and negation too
tonybruguier f3b4b4c
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier cca094d
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 5db120e
Address some comments
tonybruguier 6887011
No longer copy
tonybruguier f69a96f
fix some test
tonybruguier 7d6e713
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 4a06b7d
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 3925a2b
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 0cb8f5c
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier c9a95f7
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 3a5fc0b
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 2de88de
Address comments
tonybruguier 4c78eb4
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 0f61a61
Add ability to add ProjectorStrings to ProjectorSums
tonybruguier 4e1b12c
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 6892e37
Merge branch 'master' of github.com:quantumlib/Cirq into projector_sums
tonybruguier 7fdc4e5
Address comments
tonybruguier 6caaf63
Merge branch 'master' into projector_sums
CirqBot 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -256,6 +256,7 @@ | |
PhasedXZGate, | ||
PhaseFlipChannel, | ||
ProjectorString, | ||
ProjectorSum, | ||
RandomGateChannel, | ||
qft, | ||
Qid, | ||
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.