-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add two-qubit unitary decomposition for (inverse) sqrt-iSWAP #4213
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
23 commits
Select commit
Hold shift + click to select a range
d188ec8
Add SQISWAP gate, and tests
cduck 4a3caa2
Add two-qubit decomposition algorithm for the SQISWAP gate
cduck 6c38141
Fix bugs
cduck 89ae197
Add tests
cduck bb238e6
Fix types
cduck 27f206c
Fix lint
cduck 061e5c6
Satisfy JSON serialization
cduck 2aebebc
Fix format
cduck a65600a
Fix failing case in 3-SQISWAP synthesis
cduck 961d81d
Add test cases to fully cover Weyl chamber, clean up testing helper f…
cduck 8f34328
Add test for coverage
cduck f7b9d63
Improve tolerances
cduck e753ce3
Rename SQISWAP->SQRT_ISWAP to be consistent with other parts of Cirq
cduck f5b2fdc
Improve doc strings
cduck 9e03a3e
Add nice single-qubit decompositions (ignoring global phase)
cduck 5bd3d5e
Formatting and lint
cduck 6bbab82
Clean up _in_*sqrt_iswap_region conditions, fix comments and doc strings
cduck 332c2f7
Add doc string
cduck 3a92bc8
Add SQRT_ISWAP_INV gate instance
cduck dc6737a
Add JSON serialization test
cduck 175041c
Add option to decompose with SQRT_ISWAP_INV
cduck 64821f2
Refactor variable names to match paper, add lots of comments
cduck 3fc2cbc
Merge branch 'master' into sqiswap
cduck 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
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 |
---|---|---|
|
@@ -241,6 +241,8 @@ | |
ISWAP, | ||
ISwapPowGate, | ||
riswap, | ||
SQRT_ISWAP, | ||
SQRT_ISWAP_INV, | ||
SWAP, | ||
SwapPowGate, | ||
) | ||
|
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
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.