maybe_qubit

guppylang.std.quantum.maybe_qubit() Option[qubit][source]

Try to allocate a qubit, returning some(qubit) if allocation succeeds or nothing if it fails.