QuantumComputing icon indicating copy to clipboard operation
QuantumComputing copied to clipboard

Measurement error in the README.md?

Open bortzmeyer opened this issue 6 years ago • 1 comments

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.

bortzmeyer avatar Jun 27 '18 14:06 bortzmeyer

Hi Stéphane, Can you tell more about your post?

marcus-mello avatar Jun 29 '18 08:06 marcus-mello