liveBook · Manning

Phase gate

As explained in Quantum Programming in Depth

The Z gate is the single-qubit Pauli gate that leaves ket zero unchanged and multiplies ket one by negative one.

The Z gate is a single-qubit Pauli operation that leaves |0⟩ unchanged and multiplies |1⟩ by −1, changing relative phase without flipping the basis state. section 5.1.1

Distinguishing X from Z

Prepare |0⟩ and apply the unknown gate. Measuring 0 identifies Z because Z leaves |0⟩ unchanged; measuring 1 identifies X because X maps |0⟩ to |1⟩. section 5.1.1

Controlled-Z also demonstrates phase kickback. With a control qubit in |+⟩ and a target in a Z eigenstate, the target remains unchanged while the control becomes |+⟩ for target |0⟩ or |−⟩ for target |1⟩. Measuring the control therefore reveals the eigenvalue: +1 or −1. section 5.3.1

Figure 5.5 To use the phase kickback trick for phase estimation, we need a control qubit in a superposition state (the \(\ket{+}\) state is commonly used) and a target register of qubits in the state that is an eigenvector of the unitary we’re exploring. When we apply the controlled variant of this unitary, the target register remains unchanged, but the control qubit acquires a relative phase on the basis state \(\ket{1}\). This relative phase can be analyzed to extract informa-tion about the eigenphase that corresponds to the eigenvector.
figure

Use the phase-kickback circuit diagram to trace how a controlled unitary transfers an eigenphase to the control qubit while preserving the target eigenvector. section 5.3.1

How Quantum Programming in Depth covers it

How deep it goes
Develops basis-state action, discrimination by measurement, eigenvectors, eigenvalues, and controlled phase kickback, stopping at the ±1 case.
Examples
Uses X-versus-Z identification on |0⟩ and controlled-Z experiments with target eigenstates |0⟩ and |1⟩.
What it assumes
Assumes computational-basis measurement, superposition states, controlled gates, eigenvectors, and eigenvalues.
What you can do after
Apply it to distinguish X from Z and read ±1 eigenvalues through a controlled-Z experiment.
How it connects
Connects to Pauli gates, computational-basis measurement, controlled unitaries, eigenvectors, eigenvalues, and phase estimation.

Also explained in

Compare how 2 books explain phase gate →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quantum Programming in Depth. The section links point to the parts of the book it draws on.