Skip to content

Commit

Permalink
Add missing arg to qpy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Feb 7, 2025
1 parent 133b8e0 commit 9090b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/qpy_compat/test_qpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def generate_random_circuits(version):
condition = (qc.cregs[0], i)
body = QuantumCircuit([qc.qubits[0]])
body.x(0)
qc.if_else(condition, body, None, [qc.qubits[0]])
qc.if_else(condition, body, None, [qc.qubits[0]], [])
else:
qc.x(0).c_if(qc.cregs[0], i)
for j in range(i):
Expand Down Expand Up @@ -298,7 +298,7 @@ def generate_single_clbit_condition_teleportation(version): # pylint: disable=i
condition = (cr[0], 1)
body = QuantumCircuit([teleport_qc.qubits[0]])
body.x(0)
teleport_qc.if_else(condition, body, None, [teleport_qc.qubits[0]])
teleport_qc.if_else(condition, body, None, [teleport_qc.qubits[0]], [])
else:
teleport_qc.x(0).c_if(cr[0], 1)
teleport_qc.measure(0, cr[1])
Expand Down

0 comments on commit 9090b5b

Please sign in to comment.