You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applying CNOT2->1 to states |01> and |10> returns |01> and |11> respectively. It returns correct answer for other 2 qubit combinations though and works correctly when doing CNOT1->2.
using QuantumSavory
ra =Register(1)
rb =Register(1)
initialize!((rb[1], ra[1]), L0⊗L1) ## |01⟩
ra.staterefs[1].state[]
apply!((ra[1], rb[1]), CNOT) ## correct: |11⟩ gives: |01⟩ (no change)
ra.staterefs[1].state[]
Applying CNOT2->1 to states |01> and |10> returns |01> and |11> respectively. It returns correct answer for other 2 qubit combinations though and works correctly when doing CNOT1->2.
Shows up in #34
The text was updated successfully, but these errors were encountered: