Skip to content

Initial resets being removed by transpiler #5921

@nonhermitian

Description

@nonhermitian

Information

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

What is the current behavior?

This circuit

image

has becomes

image

after transpilation (levels 1,2,3) on a backend with reset support.

print(backend.configuration().basis_gates)

['id', 'rz', 'sx', 'x', 'cx', 'ecr', 'reset']

This means that I do not get correct answers using init_qubits=False.

Steps to reproduce the problem

What is the expected behavior?

Suggested solutions

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