|View source on GitHub|
Returns a PhaseFlipChannel that flips a qubit's phase with probability p
cirq.ops.phase_flip( p: Optional[float] = None ) -> Union[
if p is None, return a guaranteed phase flip in the form of a Z operation.
This channel evolves a density matrix via:
||the probability of a phase flip.|
||if p is not a valid probability.|