gate_bit_flip: Bit flip

Description Usage Arguments Value Raises See Also

View source: R/Noisy_Gates.R

Description

with probability of a flip given by p. If p is NULL, return a guaranteed flip in the form of an X operation. This channel evolves a density matrix via $$ \rho \rightarrow M_0 \rho M_0^\dagger + M_1 \rho M_1^\dagger $$ With $$ \beginaligned M_0 =& \sqrtp \beginbmatrix 1 & 0 \ 0 & 1 \endbmatrix \ M_1 =& \sqrt1-p \beginbmatrix 0 & 1 \ 1 & -0 \endbmatrix \endaligned $$

Usage

1

Arguments

p

the probability of a bit flip.

Value

Construct a BitFlipChannel that flips a qubit state.

Raises

ValueError: if p is not a valid probability.

See Also

Other Noisy gates and operations: gate_amplitude_damping_channel(), gate_amplitude_damp(), gate_asymmetric_depolarize(), gate_asymmetric_depolarizing_channel(), gate_bit_flip_channel(), gate_depolarize(), gate_depolarizing_channel(), gate_generalized_amplitude_damping_channel(), gate_generalized_amplitude_damp(), gate_no_noise(), gate_noise_model_like(), gate_noise_model(), gate_phase_damping_channel(), gate_phase_damp(), gate_phase_flip_channel(), gate_phase_flip(), gate_reset_channel(), gate_reset()


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.