qrisp.QuantumCircuit.add_clbit#

QuantumCircuit.add_clbit(clbit=None)[source]#

Adds a classical bit to the QuantumCircuit.

Parameters:
clbitClbit, optional

The classical bit to be added. If given none, a new Clbit will be generated.

Returns:
Clbit

The added Clbit.