Description Usage Arguments Value Raises See Also
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 $$
1 | gate_phase_flip(p = NULL)
|
p |
the probability of a phase flip. |
a phase flip channel that flips a qubit's phase with probability p
ValueError: if p is not a valid probability.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.