Quantum information
Now we're ready to move on to quantum information, where we make a different choice for the type of vector that represents a state — in this case a quantum state — of the system being considered. Like in the previous discussion of classical information, we'll be concerned with systems having finite and nonempty sets of classical states, and we'll make use of much of the same notation.
Quantum state vectors
A quantum state of a system is represented by a column vector, similar to a probabilistic state. As before, the indices of the vector label the classical states of the system. Vectors representing quantum states are characterized by these two properties:
- The entries of a quantum state vector are complex numbers.
- The sum of the absolute values squared of the entries of a quantum state vector is
Thus, in contrast to probabilistic states, vectors representing quantum states need not have nonnegative real number entries, and it is the sum of the absolute values squared of the entries (as opposed to the sum of the entries) that must equal Simple as these changes are, they give rise to the differences between quantum and classical information; any speedup from a quantum computer, or improvement from a quantum communication protocol, is ultimately derived from these simple mathematical changes.
The Euclidean norm of a column vector
is denoted and defined as follows:
The condition that the sum of the absolute values squared of a quantum state vector equals is therefore equivalent to that vector having Euclidean norm equal to That is, quantum state vectors are unit vectors with respect to the Euclidean norm.
Examples of qubit states
The term qubit refers to a quantum system whose classical state set is That is, a qubit is really just a bit — but by using this name we explicitly recognize that this bit can be in a quantum state.
These are examples of quantum states of a qubit:
and
The first two examples, and illustrate that standard basis elements are valid quantum state vectors: their entries are complex numbers, where the imaginary part of these numbers all happen to be and computing the sum of the absolute values squared of the entries yields
as required. Similar to the classical setting, we associate the quantum state vectors and with a qubit being in the classical state and respectively.
For the other two examples, we again have complex number entries, and computing the sum of the absolute value squared of the entries yields
and
These are therefore valid quantum state vectors. Note that they are linear combinations of the standard basis states and and for this reason we often say that they're superpositions of the states and Within the context of quantum states, superposition and linear combination are essentially synonymous.
The example of a qubit state vector above is very commonly encountered — it is called the plus state and is denoted as follows:
We also use the notation
to refer to a related quantum state vector where the second entry is negative rather than positive, and we call this state the minus state.
This sort of notation, where some symbol other than one referring to a classical state appears inside of a ket, is common — we can use whatever name we wish inside of a ket to name a vector. It is quite common to use the notation or a different name in place of to refer to an arbitrary vector that may not necessarily be a standard basis vector.
Notice that, if we have a vector whose indices correspond to some classical state set and if is an element of this classical state set, then the matrix product is equal to the entry of the vector whose index corresponds to As we did when was a standard basis vector, we write rather than for the sake of readability.
For example, if and
then
In general, when using the Dirac notation for arbitrary vectors, the notation refers to the row vector obtained by taking the conjugate-transpose of the column vector where the vector is transposed from a column vector to a row vector and each entry is replaced by its complex conjugate. For example, if is the vector defined in then
The reason we take the complex conjugate, in addition to the transpose, will be made more clear later on we discuss inner products.
Quantum states of other systems
We can consider quantum states of systems having arbitrary classical state sets. For example, here is a quantum state vector for an electrical fan switch:
The assumption in place here is that the classical states are ordered as high, medium, low, off. There may be no particular reason why one would want to consider a quantum state of an electrical fan switch, but it is possible in principle.
Here's another example, this time of a quantum decimal digit whose classical states are
This example illustrates the convenience of writing state vectors using the Dirac notation. For this particular example, the column vector representation is merely cumbersome — but if there were significantly more classical states it would become unusable. The Dirac notation, in contrast, supports precise descriptions of large and complicated vectors in a compact form.
The Dirac notation also allows for the expression of vectors where different aspects of the vectors are indeterminate, meaning that they are unknown or not yet established. For example, for an arbitrary classical state set we can consider the quantum state vector
where the notation refers to the number of elements in In words, this is a uniform superposition over the classical states in
We'll encounter much more complicated expressions of quantum state vectors in later lessons, where the use of column vectors would be impractical or impossible. In fact, we'll mostly abandon the column vector representation of state vectors, except for vectors having a small number of entries (often in the context of examples), where it may be helpful to display and examine the entries explicitly.
Here's one more reason why expressing state vectors using the Dirac notation is convenient: it alleviates the need to explicitly specify an ordering of the classical states (or, equivalently, the correspondence between classical states and vector indices).
For example, a quantum state vector for a system having classical state set such as
is unambiguously described by this expression, and there's really no need to choose or specify an ordering of this classical state set to make sense of the expression. In this case, it's not difficult to specify an ordering of the standard card suits — for instance, we might choose to order them like this: If we choose this particular ordering, the quantum state vector above would be represented by the column vector
In general, however, it is convenient to be able to simply ignore the issue of how classical state sets are ordered.
Measuring quantum states
Next let us consider what happens when a quantum state is measured, focusing on a simple type of measurement known as a standard basis measurement. (There are more general notions of measurement that we'll discuss later on.)
Similar to the probabilistic setting, when a system in a quantum state is measured, the hypothetical observer performing the measurement won't see a quantum state vector, but rather will see some classical state. In this sense, measurements act as an interface between quantum and classical information, through which classical information is extracted from quantum states.
The rule is simple: if a quantum state is measured, each classical state of the system appears with probability equal to the absolute value squared of the entry in the quantum state vector corresponding to that classical state. This is known as the Born rule in quantum mechanics. Notice that this rule is consistent with the requirement that the absolute values squared of the entries in a quantum state vector sum to as it implies that the probabilities of different classical state measurement outcomes sum to
For example, measuring the plus state
results in the two possible outcomes, and with probabilities as follows.
Interestingly, measuring the minus state
results in exactly the same probabilities for the two outcomes.
This suggests that, as far as standard basis measurements are concerned, the plus and minus states are no different. Why, then, would we care to make a distinction between them? The answer is that these two states behave differently when operations are performed on them, as we will discuss in the next subsection below.
Of course, measuring the quantum state results in the classical state with certainty, and likewise measuring the quantum state results in the classical state with certainty. This is consistent with the identification of these quantum states with the system being in the corresponding classical state, as was suggested previously.
As a final example, measuring the state
causes the two possible outcomes to appear with probabilities as follows:
and
Unitary operations
Thus far, it may not be evident why quantum information is fundamentally different from classical information. That is, when a quantum state is measured, the probability to obtain each classical state is given by the absolute value squared of the corresponding vector entry — so why not simply record these probabilities in a probability vector?
The answer, at least in part, is that the set of allowable operations that can be performed on a quantum state is different than it is for classical information. Similar to the probabilistic setting, operations on quantum states are linear mappings — but rather than being represented by stochastic matrices, like in the classical case, operations on quantum state vectors are represented by unitary matrices.
A square matrix having complex number entries is unitary if it satisfies the equations
Here, is the identity matrix, and is the conjugate transpose of meaning the matrix obtained by transposing and taking the complex conjugate of each entry.
If either of the two equalities numbered above is true, then the other must also be true. Both equalities are equivalent to being the inverse of
(Warning: if is not a square matrix, then it could be that and for instance. The equivalence of the two equalities in the first equation above is only true for square matrices.)
The condition that is unitary is equivalent to the condition that multiplication by does not change the Euclidean norm of any vector. That is, an matrix is unitary if and only if for every -dimensional column vector with complex number entries. Thus, because the set of all quantum state vectors is the same as the set of vectors having Euclidean norm equal to multiplying a unitary matrix to a quantum state vector results in another quantum state vector.
Indeed, unitary matrices are exactly the set of linear mappings that always transform quantum state vectors to other quantum state vectors. Notice here a resemblance to the classical probabilistic case where operations are associated with stochastic matrices, which are the ones that always transform probability vectors into probability vectors.
Examples of unitary operations on qubits
The following list describes some commonly encountered unitary operations on qubits.
-
Pauli operations. The four Pauli matrices are as follows:
A common alternative notation is and (but be aware that the letters and are also commonly used for other purposes). The operation is also called a bit flip or a NOT operation because it induces this action on bits:
The operation is also called a phase flip, and it has this action:
-
Hadamard operation. The Hadamard operation is described by this matrix:
-
Phase operations. A phase operation is one described by the matrix
for any choice of a real number The operations
are particularly important examples. Other examples include and
All of the matrices just defined are unitary, and therefore represent quantum operations on a single qubit. For example, here is a calculation that verifies that is unitary:
And here's the action of the Hadamard operation on a few commonly encountered qubit state vectors.
More succinctly, we obtain these four equations.
It's worth pausing to consider the fact that and in light of the question suggested in the previous section concerning the distinction between the states and
Imagine a situation in which a qubit is prepared in one of the two quantum states and but where it is not known to us which one it is. Measuring either state produces the same output distribution as the other, as we already observed: and both appear with equal probability which provides no information whatsoever about which of the two states was prepared.
However, if we first apply a Hadamard operation and then measure, we obtain the outcome with certainty if the original state was and we obtain the outcome again with certainty, if the original state was The quantum states and can therefore be discriminated perfectly. This reveals that sign changes, or more generally changes to the phases (which are also traditionally called arguments) of the complex number entries of a quantum state vector, can significantly change that state.
Here's another example, showing how a Hadamard operation acts on a state vector that was mentioned previously.
Next, let's consider the action of a operation on a plus state.
Notice here that we did not bother to convert to the equivalent matrix/vector forms, and instead used the linearity of matrix multiplication together with the formulas
Along similar lines, we may compute the result of applying a Hadamard operation to the quantum state vector just obtained:
The two approaches — one where we explicitly convert to matrix representations and the other where we use linearity and plug in the actions of an operation on standard basis states — are equivalent. We can use whichever one is more convenient in the case at hand.
Compositions of qubit unitary operations
Compositions of unitary operations are represented by matrix multiplication, just like we had in the probabilistic setting.
For example, suppose we first apply a Hadamard operation, followed by an operation, followed by another Hadamard operation. The resulting operation, which we shall name for the sake of this example, is as follows:
This unitary operation is an interesting example. By applying this operation twice, which is equivalent to squaring its matrix representation, we obtain a NOT operation:
That is, is a square root of NOT operation. Such a behavior, where the same operation is applied twice to yield a NOT operation, is not possible for a classical operation on a single bit.
Unitary operations on larger systems
In subsequent lessons, we will see many examples of unitary operations on systems having more than two classical states. An example of a unitary operation on a system having three classical states is given by the following matrix.
Assuming that the classical states of the system are and we can describe this operation as addition modulo
The matrix is an example of a permutation matrix, which is a matrix in which every row and column has exactly one Such matrices merely rearrange, or permute, the entries of the vectors they act upon. The identity matrix is perhaps the simplest example of a permutation matrix, and another example is the NOT operation on a bit or qubit. Every permutation matrix, in any positive integer dimension, is unitary. These are the only examples of matrices that represent both classical and quantum operations: a matrix is both stochastic and unitary if and only if it is a permutation matrix.
Another example of a unitary matrix, this time being a matrix, is this one:
This matrix describes an operation known as the quantum Fourier transform, specifically in the case. The quantum Fourier transform can be defined more generally, for any positive integer dimension and plays a key role in quantum algorithms.