Skip to content

Commit

Permalink
fix:bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lishangshu28 committed Mar 28, 2024
1 parent e47af9e commit 126c027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quafu/circuits/quantum_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def to_openqasm(self) -> str:
openqasm text.
"""
valid_gates = list(QuantumGate.gate_classes.keys()) #TODO:include instruction futher
valid_gates.append(["barrier", "delay", "reset"])
valid_gates.extend(["barrier", "delay", "reset"])
qasm = 'OPENQASM 2.0;\ninclude "qelib1.inc";\n'
qasm += "qreg q[%d];\n" % self.num
qasm += "creg meas[%d];\n" % self.cbits_num
Expand Down

0 comments on commit 126c027

Please sign in to comment.