Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test to ensure reset does not collapse density matrix (#4682)
I was going to update ResetGate to be simpler and more reusable, by having act_on do a measuremnt and then applying a PlusGate corresponding to remaining qudit steps. This passed all existing tests. However I later realized that measuring a qubit could collapse entangled qubits as well, breaking density matrix representation. Here is a test that will break with the above implementation, to make sure nobody else tries the same.
- Loading branch information