How to qubits/cbits from a circuit? For example, for a quantum circuit
qc = QuantumCircuit(2, 1)
qc.x(0)
How to remove $q_1$ and $c$ and get a single-qubit circuit consisting of only $q_0$?
How to qubits/cbits from a circuit? For example, for a quantum circuit
qc = QuantumCircuit(2, 1)
qc.x(0)
How to remove $q_1$ and $c$ and get a single-qubit circuit consisting of only $q_0$?