Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.remove_qubits

DAGCircuit.remove_qubits(*qubits)[source]

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.

Parameters

qubits (List[Qubit]) -- The bits to remove.

Raises

DAGCircuitError -- a qubit is not a Qubit, is not in the circuit, or is not idle.