cirq.SimpleQubitManager

Allocates a new CleanQubit/BorrowableQubit for every qalloc/qborrow request.

Inherits From: QubitManager

Methods

qalloc

View source

Allocate n clean qubits, i.e. qubits guaranteed to be in state |0>.

qborrow

View source

Allocate n dirty qubits, i.e. the returned qubits can be in any state.

qfree

View source

Free pre-allocated clean or dirty qubits managed by this qubit manager.