DUE Wednesday, November 4th, 2026

Poster reminders: the first draft (complete, in LaTeX) is due Friday, November 6th, and the final version and report of work are due Friday, November 13th. Details on the Posters tab.

Solutions: solutions to the daily posts due October 23rd (qubits and the LL/VV bases), October 26th (BB84 on paper, key length, catching Eve), October 30th (two-qubit states and entanglement), and November 2nd (multi-qubit measurement and single-qubit gates) are posted. All daily post solutions are collected on the Archive page.

Today we built gates on two and more qubits (CNOT, Hadamard on one qubit of a system, the reversible AND), and saw the general principle that any classical function can be computed quantumly, as long as we make it reversible. Here are some problems in those directions.

Relevant Textbook Sections:

Chapter 6 (Quantum): multi-qubit gates, CNOT, the reversible AND (Toffoli) gate, and computing classical functions reversibly.

To Do:

Unitary matrices.

  1. Verify that the product of two unitary matrices is unitary. (This may require reviewing the transpose of a product.)
  2. Verify that a unitary matrix is invertible and its inverse is unitary.

Two-qubit gates.

  1. Verify that the CNOT gate (1000010000010010)\begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{pmatrix} is unitary.
  2. Apply the CNOT gate to the state 1+2i6∣01⟩+16∣10⟩\frac{1+2i}{\sqrt{6}}|01\rangle + \frac{1}{\sqrt{6}}|10\rangle.
  3. Consider “applying the Hadamard gate to the second qubit” as a two-qubit gate.
    1. What does this do to the state ∣00⟩|00\rangle?
    2. What does this do to the state ∣01⟩|01\rangle?
    3. Write out the two-qubit 4×44 \times 4 matrix that does this, and verify that it is unitary.
  4. Begin with the 2-qubit state ∣00⟩|00\rangle.
    1. Apply the CNOT gate to the 2-qubit system and then the Hadamard gate to the 2nd qubit.
    2. Start over with ∣00⟩|00\rangle. Now apply the Hadamard gate to the 2nd qubit and then the CNOT gate to the system. Do you get the same answer?
    3. Repeat the last two parts with the Hadamard gate applied to the 1st qubit instead of the 2nd. Do you get the same answer this time? Is either output entangled?
  5. Determine a 22-qubit quantum circuit that will, on input ∣00⟩|00\rangle, produce output 12∣00⟩+12∣01⟩+12∣10⟩+12∣11⟩\frac{1}{2}|00\rangle + \frac{1}{2}|01\rangle + \frac{1}{2}|10\rangle + \frac{1}{2}|11\rangle. Hint: combine Hadamard gates.

Classical functions, quantumly.

  1. Apply the reversible AND gate (as demonstrated in class) to the state 12∣000⟩+12∣011⟩+12∣101⟩+12∣111⟩\frac{1}{2}|000\rangle + \frac{1}{2}|011\rangle + \frac{1}{2}|101\rangle + \frac{1}{2}|111\rangle.
  2. Make an 8×88 \times 8 unitary matrix that implements a reversible OR gate.
  3. Let f(x1,x2)=x1⊕x2f(x_1, x_2) = x_1 \oplus x_2 (XOR), and let UfU_f be the three-qubit gate Uf∣x1x2⟩∣y⟩=∣x1x2⟩∣y⊕f(x1,x2)⟩U_f |x_1 x_2\rangle |y\rangle = |x_1 x_2\rangle |y \oplus f(x_1,x_2)\rangle.
    1. Describe what UfU_f does to each of the eight basis states. Explain why this guarantees UfU_f is unitary.
    2. Apply UfU_f to 12(∣00⟩+∣01⟩+∣10⟩+∣11⟩)∣0⟩\frac{1}{2}\left( |00\rangle + |01\rangle + |10\rangle + |11\rangle \right)|0\rangle. Notice that you have evaluated ff on all four inputs at once.
    3. Express UfU_f as a composition of two CNOT gates.