gate_phase_flip: Phase flip

Description Usage Arguments Value Raises See Also

View source: R/Noisy_Gates.R

Description

if p is NULL, return a guaranteed phase flip in the form of a Z 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 1 & 0 \ 0 & -1 \endbmatrix \endaligned $$

Usage

1

Arguments

p

the probability of a phase flip.

Value

a phase flip channel that flips a qubit's phase with probability p

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_bit_flip(), 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_reset_channel(), gate_reset()


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