Artificial intelligent assistant

Pauli-Z gate clarification In this following document: < Page 16 says the following about Pauli Z gate However the right-hand most (ket-bra) side of the equation doesn't seem to evaluate to the 2x2 matrix. Is this a typo in the document or am I doing something wrong? |1><0| = [0 0 1 0] ---- (1) |0><1| = [0 1 ---- (2) 0 0] (1) - (2) = [0 -1 1 0] ```

$\
ewcommand{\ket}[1]{\left|#1\right>}\
ewcommand{\bra}[1]{\left<#1\right|}$

Looks like a typo while copying from $X$ and $Y$ pauli matrices.

It should be $$\ket{0}\bra{0} - \ket{1}\bra{1}$$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy b35d6056c89202a1896cc1eb3e59dfca