December 7, 2024
Search
Search
Close this search box.

Quantum – Circuits – CZ

CZ Gate \begin  {bmatrix} 1^h \  0 \  0\   0\\ 0 \  1^h \  0\   0\\ 0 \  0 \  1^h\   0\\ 0 \  0\  0\   1^v\end{bmatrix}

The quantum CZ gate, the controlled Z gate,  phase-flips the second qubit in a multipart qubit whenever the first qubit is jv and the second qubit is jv. The first qubit is the control and the CZ gate works as follows:

  • CZ|j^j^> =   \begin  {bmatrix} 1^h \  0 \  0\   0\\ 0 \  1^h \  0\   0\\ 0 \  0 \  1^h\   0\\ 0 \  0\  0\   1^v\end{bmatrix} * \begin {bmatrix} 1^h \\ 0 \\ 0\\ 0  \end{bmatrix}  = \begin {bmatrix} 1^h \\ 0 \\ 0\\ 0  \end{bmatrix} 
    • = |j^j^>

  • CZ|jvj^> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 1^h\ 0\\ 0 \ 0\ 0\ 1^v\end{bmatrix} * \begin {bmatrix} 0\\ 0  \\ 1^h\\ 0 \end{bmatrix}  = \begin {bmatrix} 0 \\ 0 \\ 1^h\\ 0 \end{bmatrix} 
    • = |jvj^>

  • CZ|jvjv> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 1^h\ 0\\ 0 \ 0\ 0\ 1^v\end{bmatrix} * \begin {bmatrix} 0\\ 0 \\ 0\\ 1^h \end{bmatrix}  = \begin {bmatrix} 0 \\ 0 \\ 0\\ 1^v \end{bmatrix} 
    • = |j^-j^> = |j^j^>

Note that all gates are unitary and as such the quantum CZ gate is reversible.

  • CZ|jvjv> =   \begin {bmatrix} 1^h \ 0 \ 0\ 0\\ 0 \ 1^h \ 0\ 0\\ 0 \ 0 \ 1^h\ 0\\ 0 \ 0\ 0\ 1^v\end{bmatrix} * \begin {bmatrix} 0\\ 0 \\ 0\\ 1^v \end{bmatrix}  = \begin {bmatrix} 0 \\ 0 \\ 0\\ 1^h \end{bmatrix} 
    • = |jvjv>

Next: Bell States

Previous: CCNOT gate

Share to:

Leave a Reply

Your email address will not be published. Required fields are marked *