Classical information
Di Siite isch nonig übersetzt worde. Dir luege d englischi Originalversion aa.
Like we did in the previous lesson, we'll begin this lesson with a discussion of classical information. Once again, the probabilistic and quantum descriptions are mathematically similar, and recognizing how the mathematics works in the familiar setting of classical information is helpful in understanding why quantum information is described in the way that it is.
Classical states via the Cartesian product
We'll start at a very basic level, with classical states of multiple systems. For simplicity, we'll begin by discussing just two systems, and then generalize to more than two systems.
To be precise, let be a system whose classical state set is and let be a second system whose classical state set is Note that, because we have referred to these sets as classical state sets, our assumption is that and are both finite and nonempty. It could be that but this is not necessarily so — and regardless, it will be helpful to use different names to refer to these sets in the interest of clarity.
Now imagine that the two systems, and are placed side-by-side, with on the left and on the right. If we so choose, we can view these two systems as if they form a single system, which we can denote by or depending on our preference. A natural question to ask about this compound system is, "What are its classical states?"
The answer is that the set of classical states of is the Cartesian product of and which is the set defined as
In simple terms, the Cartesian product is precisely the mathematical notion that captures the idea of viewing an element of one set and an element of a second set together, as if they form a single element of a single set. In the case at hand, to say that is in the classical state means that is in the classical state and is in the classical state and if the classical state of is and the classical state of is then the classical state of the joint system is
For more than two systems, the situation generalizes in a natural way. If we suppose that are systems having classical state sets respectively, for any positive integer the classical state set of the -tuple viewed as a single joint system, is the Cartesian product
Of course, we are free to use whatever names we wish for systems, and to order them as we choose. In particular, if we have systems like above, we could instead choose to name them and arrange them from right to left, so that the joint system becomes Following the same pattern for naming the associated classical states and classical state sets, we might then refer to a classical state
of this compound system. Indeed, this is the ordering convention used by Qiskit when naming multiple qubits. We'll come back to this convention and how it connects to quantum circuits in the next lesson, but we'll start using it now to help to get used to it.
It is often convenient to write a classical state of the form as a string for the sake of brevity, particularly in the very typical situation that the classical state sets are associated with sets of symbols or characters. In this context, the term alphabet is commonly used to refer to sets of symbols used to form strings, but the mathematical definition of an alphabet is precisely the same as the definition of a classical state set: it is a finite and nonempty set.
For example, suppose that are bits, so that the classical state sets of these systems are all the same.
There are then classical states of the joint system which are the elements of the set
Written as strings, these classical states look like this:
For the classical state for instance, we see that and are in the state while all other systems are in the state
Probabilistic states
Recall from the previous lesson that a probabilistic state associates a probability with each classical state of a system. Thus, a probabilistic state of multiple systems — viewed collectively as a single system — associates a probability with each element of the Cartesian product of the classical state sets of the individual systems.
For example, suppose that and are both bits, so that their corresponding classical state sets are and respectively. Here is a probabilistic state of the pair
This probabilistic state is one in which both and are random bits — each is with probability and with probability — but the classical states of the two bits always agree. This is an example of a correlation between these systems.
Ordering Cartesian product state sets
Probabilistic states of systems can be represented by probability vectors, as was discussed in the previous lesson. In particular, the vector entries represent probabilities for the system to be in the possible classical states of that system, and the understanding is that a correspondence between the entries and the set of classical states has been selected.
Choosing such a correspondence effectively means deciding on an ordering of the classical states, which is often natural or determined by a standard convention. For example, the binary alphabet is naturally ordered with first and second, so the first entry in a probability vector representing a probabilistic state of a bit is the probability for it to be in the state and the second entry is the probability for it to be in the state
None of this changes in the context of multiple systems, but there is a decision to be made. The classical state set of multiple systems together, viewed collectively as a single system, is the Cartesian product of the classical state sets of the individual systems — so we must decide how the elements of Cartesian products of classical state sets are to be ordered.
There is a simple convention that we follow for doing this, which is to start with whatever orderings are already in place for the individual classical state sets, and then to order the elements of the Cartesian product alphabetically. Another way to say this is that the entries in each -tuple (or, equivalently, the symbols in each string) are treated as though they have significance that decreases from left to right. For example, according to this convention, the Cartesian product is ordered like this:
When -tuples are written as strings and ordered in this way, we observe familiar patterns, such as being ordered as and the set being ordered as it was written earlier in the lesson. As another example, viewing the set as a set of strings, we obtain the two-digit numbers through ordered numerically. This is obviously not a coincidence; our decimal number system uses precisely this sort of alphabetical ordering, where the word alphabetical should be understood as having a broad meaning that includes numerals in addition to letters.
Returning to the example of two bits from above, the probabilistic state described previously is therefore represented by the following probability vector, where the entries are labeled explicitly for the sake of clarity.
Independence of two systems
A special type of probabilistic state of two systems is one in which the systems are independent. Intuitively speaking, two systems are independent if learning the classical state of either system has no effect on the probabilities associated with the other. That is, learning what classical state one of the systems is in provides no information at all about the classical state of the other.
To define this notion precisely, let us suppose once again that and are systems having classical state sets and respectively. With respect to a given probabilistic state of these systems, they are said to be independent if it is the case that
for every choice of and
To express this condition in terms of probability vectors, assume that the given probabilistic state of is described by a probability vector, written in the Dirac notation as
The condition for independence is then equivalent to the existence of two probability vectors
representing the probabilities associated with the classical states of and respectively, such that
for all and
For example, the probabilistic state of a pair of bits represented by the vector
is one in which and are independent. Specifically, the condition required for independence is true for the probability vectors
For instance, to make the probabilities for the state match, we need and indeed this is the case. Other entries can be verified in a similar manner.
On the other hand, the probabilistic state which we may write as
does not represent independence between the systems and A simple way to argue this follows.
Suppose that there did exist probability vectors and as in equation above, for which the condition is satisfied for every choice of and It would then necessarily be that
This implies that either or because if both were nonzero, the product would also be nonzero. This leads to the conclusion that either (in case ) or (in case ). We see, however, that neither of those equalities can be true because we must have and Hence, there do not exist vectors and satisfying the property required for independence.
Having defined independence between two systems, we can now define what is meant by correlation: it is a lack of independence. For example, because the two bits in the probabilistic state represented by the vector are not independent, they are, by definition, correlated.
Tensor products of vectors
The condition of independence just described can be expressed succinctly through the notion of a tensor product. Although tensor products are a very general notion, and can be defined quite abstractly and applied to a variety of mathematical structures, we can adopt a simple and concrete definition in the case at hand.
Given two vectors
the tensor product is the vector defined as
The entries of this new vector correspond to the elements of the Cartesian product which are written as strings in the previous equation. Equivalently, the vector is defined by the equation
being true for every and
We can now recast the condition for independence: for a joint system in a probabilistic state represented by a probability vector the systems and are independent if is obtained by taking a tensor product
of probability vectors and on each of the subsystems and In this situation, is said to be a product state or product vector.
We often omit the symbol when taking the tensor product of kets, such as writing rather than This convention captures the idea that the tensor product is, in this context, the most natural or default way to take the product of two vectors. Although it is less common, the notation is also sometimes used.
When we use the alphabetical convention for ordering elements of Cartesian products, we obtain the following specification for the tensor product of two column vectors.
As an important aside, notice the following expression for tensor products of standard basis vectors:
We could alternatively write as an ordered pair, rather than a string, in which case we obtain It is, however, more common to omit the parentheses in this situation, instead writing This is typical in mathematics more generally; parentheses that don't add clarity or remove ambiguity are often simply omitted.
The tensor product of two vectors has the important property that it is bilinear, which means that it is linear in each of the two arguments separately, assuming that the other argument is fixed. This property can be expressed through these equations:
1. Linearity in the first argument:
2. Linearity in the second argument: