Skip to content

Commit

Permalink
minor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson committed Jan 10, 2024
1 parent 8148475 commit 5ca795c
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 @@ -35,7 +35,7 @@ def QCtoCCOCircuit(circuit: QuantumCircuit):
"""

circuit_list_rep = list()
for i, inst in enumerate(circuit.data):
for inst in circuit.data:
# Barrier on all qubits not assigned to a specific qubit
if inst.operation.name == "barrier" and len(inst.qubits) == circuit.num_qubits:
circuit_list_rep.append(inst.operation.name)
Expand Down

0 comments on commit 5ca795c

Please sign in to comment.