-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add support for SwapGate
, iSwapGate
, and DCXGate
#294
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b9d7aed
Add support for `SwapGate`
garrison 779525b
Reorder terms
garrison 56a4419
Add missing terms
garrison a65397f
Merge branch 'main' into swap-gate
garrison 3edcc96
DRY the coefficients
garrison b114c0d
Fix coverage
garrison 489b68d
Add support for `iSwapGate`
garrison 3515e0e
Fix black
garrison 1c95367
Add to release note
garrison 040f219
Fix type hint
garrison 74e5a9d
Gates without parameters are nicer to work with
garrison f8aa065
Remove a line
garrison e0a5f27
Add comments describing channels
garrison d790f1d
`_copy_unique_sublists`
garrison a9ec8b6
Add `DCXGate`
garrison 69a1e69
Tweak
garrison 93b5774
Add `DCXGate` to release note
garrison 97c37cd
Merge branch 'main' into swap-gate
garrison 1f02c88
Additional tests
garrison 218e187
Update docstring with supported gates
garrison 2919a04
Merge branch 'swap-gate' of github.com:Qiskit-Extensions/circuit-knit…
garrison 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
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
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
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
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
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.
I'm a little confused why there are so many terms associated with lines 2 (and also 3) of eq 19. That summation should have 6 terms, and each of those terms looks like (uaua'* + ua'ua*)(Aaa' - Baa'). Can't quite figure out why there are 30 terms here
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.
The sum is over six possibilities, but on line two, there are actually two terms within the parentheses, so you'd expect 12 terms total. However, each boldface A or B operator actually is the sum (difference, really) of two channels [Eqs. (13) and (14)]. That's what the variables that end in
p
orm
are about -- they're actually "plus" and "minus" versions of these channels. It turns out, we don't need to keep track of the "plus" and "minus" channels individually for ones that involve a mid-circuit measurement becauseQPDMeasure
handles both cases, rather than thinking of them as two different projectors.Everything above can be said for the third line, as well.
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.
Yes, I was just coming here to say I see that it's 6+12+12. Thanks! :)