StateTomography
reconstructs wrong density matrix when c_if
involved
#943
Labels
bug
Something isn't working
Informations
What is the current behavior?
teleport_bell_state
(see code below) creates a bell state between qubits 0 and 3 and then teleports qubit 0 to qubit 2 through qubit 1. The state of qubits 2 and 3 at the end should then be the bell state initially shared between 0 and 1. However if we perform tomography on those qubits (2 and 3) then state one getsI also checked that it doesn't work if you try to teleport a single qubit in a computational state and reconstruct the state with tomography.
However it does work (both two cases) if one uses the principle of deferred measurements to replace the classically conditional operations used in teleportation (
teleport_bell_state_deferred
).Steps to reproduce the problem
What is the expected behavior?
One should be able to reconstruct the correct density matrix.
Suggested solutions
It seems that there is a problem with the way the tomography experiment handles the classical registers in the case in which classically conditioned operations are used.
The text was updated successfully, but these errors were encountered: