Skip to content

Y-gate gets transposed to 2x SX verses one X #5722

@nonhermitian

Description

@nonhermitian

Information

  • Qiskit Terra version: latest
  • Python version:
  • Operating system:

What is the current behavior?

qc = QuantumCircuit(1)
qc.y(0)
transpile(qc,backend).draw()

gives:

global phase: -π/2
                 ┌────┐┌────┐┌───────┐
        q_0 -> 0 ┤ √X ├┤ √X ├┤ RZ(π) ├
                 └────┘└────┘└───────┘

which is twice as long in duration as directly using x since both sx and x have the same duration on the backend.

Steps to reproduce the problem

What is the expected behavior?

Suggested solutions

Perhaps x goes before sx in the basis gates?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions