Classical information
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