qml.Z¶
-
Z
¶ The Pauli Z operator
\[\begin{split}\sigma_z = \begin{bmatrix} 1 & 0 \\ 0 & -1\end{bmatrix}.\end{split}\]See also
The equivalent long-form alias
PauliZ
Details:
Number of wires: 1
Number of parameters: 0
- Parameters
wires (Sequence[int] or int) – the wire the operation acts on
alias of
pennylane.ops.qubit.non_parametric_ops.PauliZ
code/api/pennylane.Z
Download Python script
Download Notebook
View on GitHub