qiskit.dagcircuit.DAGCircuit.remove_qubits¶
- DAGCircuit.remove_qubits(*qubits)[fuente]¶
Remove quantum bits from the circuit. All bits MUST be idle. Any registers with references to at least one of the specified bits will also be removed.
- Parámetros
qubits (List[Qubit]) – The bits to remove.
- Muestra
DAGCircuitError – a qubit is not a
Qubit
, is not in the circuit, or is not idle.