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
In the Python file teleportation.py the circuit first measures and then applies another gate with a simple if condition, I would have expected a c_if instruction to be used instead. It is also unclear why the operations to create the entangled pair and the creation of the arbitary state to teleport are both applied to qubit 0.
I would have expected the entangled pair and the arbitary state to be created on different qubits and the use of c_if instead of the simple if condition.
Any suggestions?
I would have followed this guide and created something like:
Environment
What is happening?
In the Python file teleportation.py the circuit first measures and then applies another gate with a simple if condition, I would have expected a
c_if
instruction to be used instead. It is also unclear why the operations to create the entangled pair and the creation of the arbitary state to teleport are both applied to qubit 0.quantumcomputingbook/chapter07/qiskit/teleportation.py
Line 39 in 02f613b
What should happen?
I would have expected the entangled pair and the arbitary state to be created on different qubits and the use of
c_if
instead of the simple if condition.Any suggestions?
I would have followed this guide and created something like:
Output:
Thanks in advance, I wish you a happy and productive day.
The text was updated successfully, but these errors were encountered: