quantumlib/unitary

Quantum Chess: Undo broken if measurements occur

dstrain115 opened this issue · 0 comments

undo moves plays the moves from the beginning of the game, but it ignores the post-selection criteria and measurement results. Also, it seems to return if a measurement is zero. This behavior is incorrect. If a measurement is supposed to be zero, and we measure one, we continue the board in an incorrect state. If the measurement is zero, then the undo stops and doesn't finish replaying the moves. Both are incorrect.

I have not yet written a unit test for this, so I have not verified exact behavior, but I am pretty sure it is broken.