QuantumCircuit.num_unitary_factors

QuantumCircuit.num_unitary_factors()[source]

Computes the number of tensor factors in the unitary (quantum) part of the circuit only.