QuantumComputing
QuantumComputing copied to clipboard
Measurement error in the README.md?
README.md says (example "Pure python quantum computing machinery"):
qc.measure("q1")
qc.measure("q2")
Probability.pretty_print_probabilities(qc.qubits.get_quantum_register_containing("q1").get_state())
If you do so, the last line always output:
|psi>=|00>
Pr(|00>)=1.000000;
<state>=1.000000
Because measurement destroyed the state. IMHO, it should be get_noop instead of get_state.
Hi Stéphane, Can you tell more about your post?