qrisp.QuantumSession.cnot_count#

QuantumSession.cnot_count()[source]#

Method to determine the amount of CNOT gates used in this QuantumSession.

Returns
int

The amount of CNOT gates.

Raises
Exception

Tried to compute the CNOT count with open environments.