-
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
Make apply!
work when used with any order of subsystem indices
#133
Conversation
Would it be better to just have an optional boolean keyword arg in |
Thanks for starting this! The apply! on Operator, and the apply! with SuperOperator both suffer from the same bug and should be fixed. I would suggest not adding any keyword arguments to |
Also, I would suggest having a test that has three operators and a permutation that is not its own inverse, e.g. |
Codecov Report
@@ Coverage Diff @@
## master #133 +/- ##
==========================================
+ Coverage 93.62% 93.66% +0.04%
==========================================
Files 25 25
Lines 3105 3125 +20
==========================================
+ Hits 2907 2927 +20
Misses 198 198
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I did some minor cleanup in the last commit. Thanks for taking care of this! |
apply!
needs to be able to permute the operator based on the order of the indices of the qubits/subsystems, e.g., doing CNOT2->1. Resolves QuantumSavory/QuantumSavory.jl/issues/39 cc @Krastanov