QuantumCircuit.width

QuantumCircuit.width()[source]

Return number of qubits plus clbits in circuit.

Returns

Width of circuit.

Return type

int