# qiskit.circuit.QuantumCircuit.num_tensor_factors¶

QuantumCircuit.num_tensor_factors()[source]

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

Notes

This is here for backwards compatibility, and will be removed in a future release of Qiskit. You should call num_unitary_factors instead.

Return type

int