Skip to content

load_qasm_{file, string} converts t gate inappropriately #551

@t-imamichi

Description

@t-imamichi

Informations

  • QISKit (Python SDK) version: 0.5.3
  • Python version: 3.6.5
  • Operating system: macOS 10.13.5

What is the current behavior?

load_qasm_file and load_qasm_string converts t gate into tdg.

Steps to reproduce the problem

Run the following script.

from qiskit.wrapper import load_qasm_string

qasm_string="""
OPENQASM 2.0;
include "qelib1.inc";
qreg q[1];
creg c[1];
t q[0];
"""
circuit = load_qasm_string(qasm_string, name='tmp', basis_gates='t')
print(circuit.qasm())

The result is as follows.

OPENQASM 2.0;
include "qelib1.inc";
qreg q[1];
creg c[1];
tdg q[0];

What is the expected behavior?

Do not change t gate.

Suggested solutions

I have no idea.

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