bloqade.squin.stdlib.simple.noise.qubit_loss
← Module overview
function
source
functionqubit_loss¶source
bloqade.squin.stdlib.simple.noise.qubit_loss
def qubit_loss(p: float, qubit: Qubit) -> NoneApply a qubit loss channel to the given qubit.
The qubit is lost with a probability p.
Parameters
| Name | Type | Description |
|---|---|---|
p | float | Probability of the atom being lost. |
qubit | Qubit | The qubit to which the noise channel is applied. |