qrisp.measure#

measure(qubits, clbits=None)[source]#

Performs a measurement of the specified Qubit.

Parameters:
qubitQubit or list[Qubit] or QuantumVariable

The Qubit to measure.

clbitClbit, optional

The Clbit to store the result in. By default, a new Clbit will be created.