Skip to content

Add x and y measurements #3967

@quantumjim

Description

@quantumjim

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions