Question 4 (Harder): Quantum Operators (Translating a State Mapping to a Matrix)
Source: Chapter 02, slides 3-4, 7-9, 19, 21, 27, 32-33; Chapter 03, slides 11, 38-39; Chapter 04, slides 11-16
These problems go beyond the base Question 4 set: mappings where information is deliberately incomplete and must be recovered from orthonormality, mappings on 3 qubits with genuinely entangling truth tables, mappings given between two non-computational bases at once, and a mapping given as a symbolic formula rather than concrete numbers.
Problem 1: recovering a missing output from orthonormality alone
Given: on a single qubit, only one output is specified,
and you are told the unknown operator is orthonormal (a valid gate). Find , then assemble the full matrix .
Step 1, what orthonormality forces. means the columns of must form an orthonormal set. Column 0 is already fixed as ; this has norm
so it is already a valid unit vector. Column 1 must be a unit vector orthogonal to column 0, since distinct columns of an orthonormal matrix must have zero overlap.
Step 2, find a vector orthogonal to column 0. In , a real vector orthogonal to is obtained by swapping the two entries and flipping one sign:
Check orthogonality directly:
Its norm is , so it is already unit length.
Step 3, the phase freedom. This orthogonal unit vector is only determined up to an overall phase â multiplying it by any keeps it unit length and orthogonal to column 0. Nothing in the problem statement fixes , so we take the simplest choice (a real solution). A different piece of information (e.g. a stated Hermiticity requirement, or a second constraint on ) would be needed to pin down uniquely.
Step 4, assemble.
Step 5, verify. Both columns are unit length and mutually orthogonal (Steps 1-2), so by construction. This has the form with , i.e. it is a real rotation matrix, matching the family from chapter 04 slide 14 with .
Problem 2: the Toffoli gateâs full matrix from its truth table
Given, on 3 qubits: (the target bit flips only when both control bits are ).
Step 1, write out all 8 images. Using the ordering with the target:
Only the last two rows change: toggles .
Step 2, write the outer-product sum. Six terms are identity-like ( for the six untouched basis states) plus two swapped terms:
Step 3, place entries. Order the basis by index , positions â. Every position keeps a on the diagonal except positions () and (), which swap:
Step 4, verify. This is a permutation matrix (exactly one per row and column), so automatically. This is the Toffoli gate, and it is non-Clifford (Question 7, Math Q6) precisely because it cannot be decomposed as a product of one- and two-qubit Clifford gates, even though the matrix itself is a simple permutation.
Problem 3: iSWAP from its mapping (entangling, complex-valued, not a plain permutation)
Given: , , , .
Step 1, write the outer-product sum.
Step 2, place columns. Column 0 (): . Column 1 (): image is , so . Column 2 (): image is , so . Column 3 (): .
Step 3, assemble.
Step 4, verify. Each column has exactly one nonzero entry, of modulus or , and the nonzero entries of distinct columns sit in distinct rows (row , row , row , row respectively), so all columns are mutually orthogonal and unit length: . Valid. Unlike Problem 2, this mapping genuinely entangles the computational basis states into each other with an extra factor of , rather than merely permuting bit strings unchanged in value.
Problem 4: change of basis between the Bell basis and the computational basis
Given, following the standard Bell-measurement convention: , , , , where
Unlike every problem in the base Question 4 file, each input ket here is itself a two-term superposition, so every bra in the outer-product sum expands into two pieces before columns can be read off.
Step 1, expand every bra.
Step 2, write the outer-product sum and distribute.
Step 3, collect by input basis ket (column) rather than by term. Column receives a contribution from the first two terms: and , so
Column receives and :
Column receives and :
Column receives and :
Step 4, assemble in the standard column order .
Step 5, verify orthonormality directly. ; ; ; all cross terms between -columns and -columns vanish automatically since they have disjoint nonzero rows. So . Valid. This is exactly the Bell-basis-to-computational-basis change-of-basis matrix.
Problem 5: a symbolic mapping, deriving as a formula and connecting it to
Given, as a formula in the real parameter rather than concrete numbers:
Step 1, write the outer-product sum.
Step 2, assemble.
Step 3, verify orthonormality for every . has diagonal entries and , with off-diagonal entries , so for every real : a whole one-parameter family of valid gates, not a single matrix.
Step 4, connect to by factoring out a global phase. Factor out of both diagonal entries:
Step 5, check the factoring is correct entry by entry. entry: , matching âs entry directly. entry: , matching âs entry. Both match exactly.
Conclusion. and act identically on any state up to the global phase factor , so they are physically indistinguishable in isolation (Question 2, Why Q4) even though their matrices differ â but that global-phase factor stops being ignorable the moment or is used as the controlled version of itself inside a larger circuit, since a controlled gate cannot discard a phase that only appears on one branch of the control.