bloqade.squin.stdlib.broadcast.noise.bit_flip
← Module overview
function
source
functionbit_flip¶source
bloqade.squin.stdlib.broadcast.noise.bit_flip
def bit_flip(p: float, qubits: ilist.IList[Qubit, Any]) -> NoneApply a bit flip error channel to the qubits in the given list with probability p.
Parameters
| Name | Type | Description |
|---|---|---|
p | float | Probability of a bit flip error being applied. |
qubits | ilist.IList[Qubit, Any] | The list of qubits to which the noise channel is applied. |