measure_leaked

guppylang.std.qsystem.sol.measure_leaked(q: qubit) MaybeLeaked[source]

Perform a lazy ‘leakage detecting’ measurement

As well as 0 and 1, a third state is possible that indicates the ion has leaked out of the qubit subspace. Returns a MaybeLeaked object that can be queried (blocking) for the result.