Skip to content

Commit

Permalink
回退 'Pull Request !2254 : fix qasm id convert'
Browse files Browse the repository at this point in the history
  • Loading branch information
donghufeng authored and gitee-org committed Jan 12, 2024
1 parent 2dab229 commit 977b7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mindquantum/io/qasm/openqasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def h_related(gate):

def i_related(gate):
"""Convert mindquantum gate to qasm."""
return f"id q[{gate.obj_qubits[0]}];"
return f"id {gate.obj_qubits[0]};"


def phase_related(gate):
Expand Down

0 comments on commit 977b7f9

Please sign in to comment.