Skip to content

Commit

Permalink
fix: use add_ins instead of add_gate
Browse files Browse the repository at this point in the history
  • Loading branch information
beizhansl committed Nov 22, 2023
1 parent 61d5b22 commit 796799d
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 @@ -108,7 +108,7 @@ def gates(self, gates: list):
# TODO(qtzhuang): add_gates is just a temporary call function to add gate from gate_list
def add_gates(self, gates: list):
for gate in gates:
self.add_gate(gate)
self.add_ins(gate)

def add_gate(self, gate: QuantumGate):
"""
Expand Down

0 comments on commit 796799d

Please sign in to comment.