The Pauli gate is defined by its action on the computational basis states
In PennyLane, you can
implement it by calling qml.PauliZ. It has the following circuit element:
Write a QNode that applies qml.PauliZ to the state and returns the state. What state is this? How do the
measurement probabilities differ from those of the state
|
To interact with codercises, please switch to a larger screen size.
Learning Objectives:
Distinguish between global and relative phases.
Describe the action of the RZ gate and its matrix representation.