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 / 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.
- Verify that the product of two unitary matrices is unitary. (This may require reviewing the transpose of a product.)
- Verify that a unitary matrix is invertible and its inverse is unitary.
Two-qubit gates.
- Verify that the CNOT gate is unitary.
- Apply the CNOT gate to the state .
- Consider “applying the Hadamard gate to the second qubit” as a two-qubit gate.
- What does this do to the state ?
- What does this do to the state ?
- Write out the two-qubit matrix that does this, and verify that it is unitary.
- Begin with the 2-qubit state .
- Apply the CNOT gate to the 2-qubit system and then the Hadamard gate to the 2nd qubit.
- Start over with . Now apply the Hadamard gate to the 2nd qubit and then the CNOT gate to the system. Do you get the same answer?
- 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?
- Determine a -qubit quantum circuit that will, on input , produce output . Hint: combine Hadamard gates.
Classical functions, quantumly.
- Apply the reversible AND gate (as demonstrated in class) to the state .
- Make an unitary matrix that implements a reversible OR gate.
- Let (XOR), and let be the three-qubit gate .
- Describe what does to each of the eight basis states. Explain why this guarantees is unitary.
- Apply to . Notice that you have evaluated on all four inputs at once.
- Express as a composition of two CNOT gates.