From 977b7f9af67a54be8a384856c4129249371bb288 Mon Sep 17 00:00:00 2001 From: donghufeng Date: Fri, 12 Jan 2024 16:56:06 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!2254=20?= =?UTF-8?q?:=20fix=20qasm=20id=20convert'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mindquantum/io/qasm/openqasm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindquantum/io/qasm/openqasm.py b/mindquantum/io/qasm/openqasm.py index 4e20152e8..0df8d6eea 100644 --- a/mindquantum/io/qasm/openqasm.py +++ b/mindquantum/io/qasm/openqasm.py @@ -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):