Skip to content

Commit

Permalink
!2257 回退 'Pull Request !2254 : fix qasm id convert'
Browse files Browse the repository at this point in the history
Merge pull request !2257 from donghufeng/revert-merge-2254-master
  • Loading branch information
donghufeng authored and gitee-org committed Jan 12, 2024
2 parents 2dab229 + 977b7f9 commit a861376
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 a861376

Please sign in to comment.