What is the expected behavior?
Qiskit natively supports z measurements using measure, but x and y basis measurements need to be done with a quick hack (reflecting how the hardware works).
However:
- We may want to support hardware that can directly perform these measurements
- It could help in the textbook and other educational materials to be able to talk about these measurements without first having to introduce the gates that are currently required to perform them.
I'd suggest measure_x and measure_y be added to QuantumCircuit, with measure_x compiling down to h followed by measure (except for relevant hardware).
What is the expected behavior?
Qiskit natively supports z measurements using
measure, but x and y basis measurements need to be done with a quick hack (reflecting how the hardware works).However:
I'd suggest
measure_xandmeasure_ybe added toQuantumCircuit, withmeasure_xcompiling down tohfollowed bymeasure(except for relevant hardware).