Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko committed Jan 17, 2024
1 parent 3efc58a commit 93eff2e
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,6 @@ def _circuit_compose(
return self


def _truncate_inactive_qubits(
circ: QuantumCircuit, active_qubits: Sequence[Qubit]
) -> QuantumCircuit:
res = QuantumCircuit(active_qubits, name=circ.name, metadata=circ.metadata)
for inst in circ:
if all(q in active_qubits for q in inst.qubits):
res.append(inst)
res.calibrations = circ.calibrations
return res


def _synthesize_clifford(
clifford: Clifford,
basis_gates: Optional[Tuple[str]],
Expand Down

0 comments on commit 93eff2e

Please sign in to comment.