In this lecture we formulate the basic organizing principle of Math 202A: linear algebra quantizes combinatorics. We will make this precise using the language of category theory, which we began to introduce in Lecture 1. In particular, we defined combinatorics as the study of the category whose objects are finite sets and whose morphisms are functions. It remains to give a corresponding definition of linear algebra.
Definition 2.1. Linear algebra is the study of the category whose objects are finite-dimensional complex vector spaces equipped with a scalar product, and whose morphisms are linear transformations.
We are going to call objects in “Hilbert spaces,” so that we don’t have to say “finite-dimensional complex vector spaces equipped with a scalar product” every time we reference such an object. However, you should be aware that in the world outside Math 202A the term Hilbert space is used in a broader sense and also includes infinite-dimensional complex inner product spaces which are complete for the norm induced by the scalar product. In the finite-dimensional case, completeness is automatic but for infinite-dimensional spaces it is an extra assumption. I repeat: in Math 202A the term Hilbert space exclusively refers to finite-dimensional complex vector spaces which come with a given scalar product. Note that two Hilbert spaces which have the same underlying vector space but different scalar products are distinct objects of
but they are isomorphic with the identity transformation being a particular isomorphism. In particular, isomorphisms in
are not required to preserve scalar products, but those which do (isometric isomorphisms) are particularly important and useful. Also note that we sometimes (often) reference Hilbert spaces without explicitly mentioning their scalar product.
Problem 2.1. Prove that two Hilbert spaces are isomorphic if and only if there exists a linear bijection between them.
We will commence a careful discussion of next week. Right now, we want to construct some sort of a mapping
which will justify our statement that linear algebra is quantized combinatorics. Therefore, we first need to introduce a the general notion of mapping from one category to another. As discussed in Lecture 1, categories generalize sets insofar as is just one example of a category, so mappings between categories generalize functions — they are called functors and defined as follows.
Let and
be categories. A functor
is first of all a rule which assigns to each object a corresponding object
Second,
should map morphisms
in
to morphisms
in
in a way which is compatible with the composition laws in these categories. More precisely, we require that for any objects
and morphisms
and
the corresponding morphisms
and
satisfy the equality
in
We are now ready to define a specific functor
which we will refer to as the quantization functor. The quantization of a given finite set
is the Hilbert space whose vectors are functions
with the vector space operations defined pointwise and the scalar product given by
We should verify that is in fact a finite-dimensional Hilbert space. First, this requires us to check that the putative scalar product introduced above really is one.
Problem 2.2. Prove that as defined above really is a scalar product on
Second, we need to show that really is a finite-dimensional vector space, and we do this by giving an explicit basis. For each
define the corresponding Dirac function
Thus, is a set of
functions in
and in fact it is an orthonormal set,
So is a linearly independent set in
and only one check remains.
Problem 2.3. Prove that spans
With Problem 2.3 in hand, we can introduce an alternative point of view for the space which is often favored by algebraists: we can think of it as the “space of formal linear combinations” of points in
That is, elements of
are linear combinations
where are scalars. This doesn’t really mean anything since we have no notion of scaling a point
by a number
, and such a formal linear combination is really just a shorthand for the coordinate decomposition
of a function with respect to the Diract basis
We are not yet done with defining the functor because we need to say how it assigns a linear transformation
to a given set function
Before doing this let us explain why we are referring
as quantization. Consider the canonical finite set
We can view this as the state space of a particle
which can occupy any one position on a finite lattice of
sites. Equivalently, you can think of
being a ball which may be in any one of
labeled boxes or, as probabilists like to say, “urns.” So
is the state space of a classical particle, which is certain to be in one these boxes. On the other hand,
is the state space of a quantum particle
whose state is a superposition of classical states until a measurement is performed. More precisely, a (pure) quantum state is a unit vector
, the physical meaning of which is that the probability to observe the quantum particle in state
is given by the amplitude
Now to complete the definition of quantization as a functor from
to
it remains to say how a function
between finite sets becomes a corresponding linear transformation
between the corresponding Hilbert spaces. As in Lecture 1, let
of and
, write
and
. Then, the function
is encoded by a corresponding lookup table, namely the
matrix
whose
-entry is
if
and
otherwise. Now for any
we simply define the corresponding linear transformation
to be the linear transformation whose matrix with respect to the bases and
is the matrix of the original set function
. That is,
In fact, we can give a coordinate free description of the linear transformation — for every function
, the function
is the pushforward of
through
Problem 2.4. Show that
Now that we have justified our contention that linear algebra is quantized combinatorics, let us indicate briefly why this might be a useful functor to apply to a combinatorial problem. The first reason is that there are many more linear transformations between then there are functions
Technically one says that the functor
is not full, and while this sounds like a negative it is actually a good thing. Indeed if
are two finite sets of combinatorial objects which we suspect have the same cardinality, then working in the category
our only option is to demonstrate the existence of a bijection
, and this could be hard. However, if we quantize our problem we now have the option of showing that there exists a linear isomorphism
and this opens up a whole new realm of possibilities since we are allowed to map superpositions of objects in
onto superpositions of objects in
Another example comes from graph theory, where we can replace a graph with vertex set
by the function space
and encode the adjacency relation
in
as the operator
By thinking about the adjacency operator in different bases of
we may be able to gain more insight into our graph. In particular, if we can find a superposition of vertices on which
acts diagonally we have access to some very useful information, as we will discuss later in the course.
A few more remarks. First, every Hilbert space is isomorphic to a space of the form
for some finite set
Indeed, every vector space has a basis, and hence by the Gram-Schmidt procedure every Hilbert space has an orthonormal basis. Now,
is isomorphic to
for any set
we use to label the elements of this ordered basis. Second, there is a different functor
worth mentioning. As the notation suggests this is closely related to the functor latex and indeed
for every
The difference is that we send a function
to its pullback along
, which is the linear transformation
defined by
Technically this does not match our definition of a functor given above, since it reverses arrows. Our initial definition in fact specifies the notion of a covariant functor, whereas this new construction is an example of a contravariant functor.
Problem 2.5. Show that the the matrix of the pullback of a set function
is the adjoint of the lookup table of