Skip to content

Commit

Permalink
just once
Browse files Browse the repository at this point in the history
  • Loading branch information
ajavadia committed Jan 24, 2023
1 parent 553f218 commit 8cc6ac6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ def _transpiled_circuits(self) -> List[QuantumCircuit]:
# Compute average basis gate numbers per Clifford operation
# This is probably main source of performance regression.
# This should be integrated into transpile pass in future.
for circ in transpiled:
qubit_indices = {bit: index for index, bit in enumerate(circ.qubits)}
qubit_indices = {bit: index for index, bit in enumerate(circ.qubits)}
for circ in transpiled:
count_ops_result = defaultdict(int)
# This is physical circuits, i.e. qargs is physical index
for inst, qargs, _ in circ.data:
Expand Down

0 comments on commit 8cc6ac6

Please sign in to comment.