Skip to content

Commit

Permalink
update xform code to fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson committed Jan 10, 2024
1 parent 74d984a commit 8148475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circuit_knitting/cutting/cut_finding/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def QCtoCCOCircuit(circuit: QuantumCircuit):
circuit_list_rep.append(inst.operation.name)
else:
circuit_element = (inst.operation.name,)
if params:
if inst.operation.params:
circuit_element += tuple(inst.operation.params)
circuit_element = (circuit_element,)
for qubit in inst.qubits:
Expand Down

0 comments on commit 8148475

Please sign in to comment.