In quantum information, there are two common notations to represent vectors and linear transformations between them: the bra-ket notation, and the matrix notation.
In the bra-ket notation, it is possible to explicitly write the basis that is being used to represent a vector, whereas, in the matrix notation, this is implicit.
Consider a vector . In an orthonormal basis , we have:
In the second notation, the fact that the basis is being used is implicit.
A linear transformation on the other hand, is associated with two bases rather than one. A basis for the input vector space and one for the output vector space.
This is extremely important. A lot of times, if we are writing a linear transformation from a vector space into the same vector space, we may use the same basis—however, as we will see below, this is not necessary.
Change of basis
A change of basis transformation is a linear transformation that takes an input vector in a particular basis and represents the same vector in another basis. Here, obviously, the output basis is different from the input one. Let us do this with an example.
In quantum information, there are two bases that are usually used for the space . There is the computational basis: and the basis: .
They are related as follows:
Now that we know how the bases are related, we will write a change-of-basis linear transformation in both the notations. We will transform from the basis to the basis.
We are transforming from a dimensional space back to the same space. Therefore, we require a matrix in the matrix notation:
Unfortunately, because we do not explicitly mention the bases, the above statement becomes confusing, and one might not even know it is a change of basis operation. We have in the basis and in the basis. What elements do we put in the matrix above such that
?
[We mentioned the vector’s current basis in the subscript although in practice this is never done.]
We can substitute the vectors and for in equation and use the relations in to write the elements of the change of basis matrix.
How do we do the same in bra-ket notation? Well, here this is much more straightforward. We directly use the relations in to write the transformation as:
A vector of the form left multiplied by the above transformation will become such that:
The inner product notation allows us to concisely express the same matrix multiplication as above. The basis being explicit allows us to see the transformation clearly. However, the basis being explicit may also cause us to incorrectly simplify the above transformation as:
This is just the identity, you say! Yes, if you transform a vector from one basis to the same basis while ensuring it is the same vector, you get the identity transformation. Even the matrix transformation above in will be equal to the identity if you go from one basis to the same basis.
Other transformations — actually changing the input vector
Rotations and other linear transformations, unlike the change of basis transformations above, may deal with the same input and output basis. These transformations change the vector itself and not just the representation. This time, one may get confused in the bra-ket notation. For example, a rotation may be written as:
This is not a change of basis matrix! You may rewrite the above in the same input and output basis to see that it is not equal to the identity!
To do for sometime later
Also write the relation between change-of-basis transformations and rotations in this blogpost.