L8 Representing a Matrix in a Given Basis
Overview
Hiu-Yung Wong explains that an operator’s matrix depends on the chosen basis, with each entry given by the matrix element ⟨i|H|j⟩. He derives this formula from completeness and applies it to express the Pauli X operator in its own eigenbasis, where its representation is diagonal with eigenvalues +1 and −1.
Key takeaways
- The matrix representation of an operator depends on the basis, and its row i, column j entry is ⟨i|H|j⟩.
- Completeness, I = Σᵢ |i⟩⟨i|, gives the reconstruction formula H = Σᵢⱼ ⟨i|H|j⟩|i⟩⟨j|.
- A one-qubit operator has a 2 × 2 representation because a qubit basis contains two states.
- The Pauli X matrix changes from [[0, 1], [1, 0]] in the computational basis to [[1, 0], [0, −1]] in its eigenbasis.
- Matrix operations require all vectors and operators to be expressed in a consistent basis; basis conversion is necessary before combining representations.
Chapters
- A vector’s coordinates change with the basis: |0⟩ has coordinates (1, 0) in the computational (Pauli Z) basis.
- In the Pauli X basis, |0⟩ is an equal superposition of |+⟩ and |−⟩, so its coordinates are (1/√2, 1/√2) for normalized states.
- The same basis-dependence applies to matrix representations, not only to vectors.
- For basis vectors |i⟩ and |j⟩, the row i, column j entry of operator H is ⟨i|H|j⟩.
- An n-dimensional basis produces an n × n matrix; a one-qubit system has two basis states and therefore a 2 × 2 matrix.
- In the computational basis, the Pauli Z matrix has diagonal entries +1 and −1 and off-diagonal entries 0.
- Completeness gives the identity operator as I = Σᵢ |i⟩⟨i| for a complete basis.
- Inserting this identity on both sides of H yields H = Σᵢⱼ |i⟩⟨i|H|j⟩⟨j|.
- Each scalar ⟨i|H|j⟩ multiplies the outer product |i⟩⟨j|, which contributes to the matrix’s row i, column j position.
- The expansion reconstructs H by summing the contributions from every pair of basis states.
- The Pauli X operator is [[0, 1], [1, 0]] when written in the computational basis.
- To represent it in the Pauli X eigenbasis, use |+⟩ = (|0⟩ + |1⟩)/√2 and |−⟩ = (|0⟩ − |1⟩)/√2.
- The four required entries are ⟨+|X|+⟩, ⟨+|X|−⟩, ⟨−|X|+⟩, and ⟨−|X|−⟩.
- Using the computational-basis matrix for X to evaluate the sandwiches gives diagonal entries +1 and −1 and zero off-diagonal entries.
- The Pauli X matrix in its eigenbasis is therefore [[1, 0], [0, −1]], with its eigenvalues on the diagonal.
- Every multiplication must use representations in the same basis; combining computational-basis components with Pauli X-basis components without converting is invalid.
Transcript excerpt
0:07 is that if you are given a matrix represent a basis right how do you represent a matrix in that basis that is what I want to talk about what does it mean for this question. Yeah, it means it it means that I I say okay represent something in the sigma z basis which is zero and one right you have a matrix sigma c right or represent in the plus minus basis which is the igon vector of the sigma x they have different representation it's just not inverter we already know right for vector
0:55 for example for this vector zero Right? This one is just one zero in the sigma Z on state igon vector basis. Right? Do you agree? But why is this in the sigma x uh on uh vector basis right? If if you remember all the equation or this fake diagram this is zero this is one this is plus and this is minus this is fake but the result is correct.
1:47 Yeah. So, so zero is what? It's just equal to 1 / 2 of [snorts] plus minus. Right? So, how do you represent this vector in the plus minus basis? Say again 1 by 2 one and then >> one. Very good. Right? Because this is talking about I have one component of plus and I have one component of minus, right? Okay, you know this already. We talked about this earlier, right? But how about for the matrix, right? How what is the easy way to to write this?
2:35 So here I'm going to give you the equation. If I give you given you give given a basis it is a set right so I write it in this way it's a set of vector and this is a basis
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Quantum Computing, TCAD, Semicond by Hiu-Yung Wong.