19
Requirements for a Quantum Computer

Artur Ekert1,2 and Alastair Kay1,3

1 University of Oxford, Mathematical Institute, Andrew Wiles Building, Radcliffe Observatory Quarter (550), Woodstock Road, Oxford, OX2 6GG, UK

2 National University of Singapore, Centre for Quantum Technologies, Science Drive 2, Singapore, 117543, Singapore

3 Royal Holloway, University of London Egham, Surrey, TW20 0EX, UK

The classical theory of computation usually does not refer to physics. Pioneers such as Turing, Church, Post, and Gödel managed to capture the correct classical theory by intuition alone and, as a result, it is often falsely assumed that its foundations are self‐evident and purely abstract. They are not!

Computers are physical objects and computation is a physical process. Consequently, when we improve our knowledge about physical reality, we may also gain new means of improving computation. From this perspective it should not be very surprising that the discovery of quantum mechanics has changed our understanding of the nature of computation.

19.1 Classical World of Bits and Probabilities

We tend to view computation as an operation on abstract symbols. Any finite set of symbols is called an alphabet and any finite sequence of symbols from that alphabet is called a string. Here, without any loss of generality, we will use the binary alphabet images . We shall denote the set of all images possible binary strings of length images as images . Binary digits can be added, images , and multiplied, images , as

19.1 equation
19.2 equation

The addition is also known as the logical XOR (exclusive OR ) and the multiplication as the conjunction or the logical AND (images ). Given two binary strings, images and images , we can add them bit by bit, for example, images and images can be added as images . Note that for any binary string images , images .01 We can also view a string of images bits as a vector of images binary components and define the inner product by the standard rule of multiplying corresponding components and summing the results, for example, images .

From a mathematical perspective, a computer is an abstract machine that evaluates a function

19.3 equation

that is, given images bits of input it produces images bits of output. Such a function is equivalent to images functions, each with a one‐bit output, known as Boolean functions,

19.4 equation

Thus, one might as well say that computers evaluate Boolean functions. There are images deterministic Boolean functions acting on images bits. We shall start our discussion with the simplest one. Consider the most general computing machine that performs a computation on one bit, that is, it maps images to itself. The action of the machine may be represented by the diagram,

19.5 equation

The function of this machine is such that if we prepare the input with the value images (images or 1) and then measure the output, we obtain the value images (images or 1) with probability images . More generally, if we prepare the input images with probability images , then we obtain the output images with probability images . It is convenient to tabulate the transition probabilities and express the action of the machine in a matrix form02

19.6 equation

The state of a physical bit, for example, the input or output, is described by a probability vector, and its evolution by a transition matrix. The transition matrix has nonnegative elements images satisfying the standard probability conditions images , that is, entries in each column add up to 1, which means that each column can be viewed as a probability vector. Such matrices are called stochastic. For example, here are five stochastic matrices: the first four describe all possible deterministic limits of a one bit computation and the fifth one describes a completely random switch.

19.7 equation

The identity, negation, and random switch matrices are, in fact, doubly stochastic, meaning that both their rows and columns add to 1. In general, stochastic matrices may have different numbers of rows and columns. For example, probability vectors can be viewed as single‐column stochastic matrices. Any machine evaluating a function images can be described by a images stochastic matrix with entries images , where the input images and the output images . In particular, if the evolution of the machine is deterministic, then the entries images take only two values, 0 and 1, and the matrix can also be used to define the function images , instead of, for example, a truth table. Let us also mention that any computation can be embedded into reversible computation. For any function images taking images bits to images , there exists an invertible function images taking images bits to images which evaluates images as

19.8 equation

Initially, the input string images is a concatenation of two strings: the first images bits represent the string images and the remaining images bits are set to represent an arbitrary string images . After the function evaluation the output images is a concatenation of two strings: the first images bits still represent images but the remaining images bits are set to the value images . If you run the computation again, the string images will evolve to images which is equal to the initial images . Consequently, and without any loss of generality, we can focus on machines performing reversible computations, where all the matrices describing the evolution are square.

It seems obvious that any machine whose action depends on no other input or stored information and which performs a computation on a single bit is described by some images stochastic matrix. In general, we may conjecture that any machine that performs a computation on a physical system with images distinguishable states is described by some images stochastic matrix. The entries of such matrices can be derived from the laws of physics governing the dynamics of the machines. We may not know their specific values but at least we know they exist. This is a very reasonable conjecture, so let us have a closer look at some of its consequences.

Given two independent machines described by stochastic matrices images and images , we can make them work together either in parallel or in sequence. The resulting, composed, machines are described by some new stochastic matrices that are denoted as images and images , respectively,

Illustration of Mach-Zehnder interferometer.

The entries in the new stochastic matrices can be calculated following a few simple rules, or axioms if you wish, of classical probability theory. They state that with any event images one can assign a number images between 0 and 1 such that if images represents a definite event, then images . Moreover, probabilities are added for mutually exclusive events and multiplied for independent events,

  • If images and images are mutually exclusive events, then the probability of the event (images or images ) is the sum of the probabilities of the constituent events,
    19.9 equation
  • If images and images are independent events, then the probability of the event (images and images ) is the product of the probabilities of the constituent events,
    19.10 equation

It is worth stressing that independence and mutual exclusivity are different. Two independent events can both occur in the same trial whereas two mutually exclusive events cannot. In our case, individual machines act independently from each other, be it in parallel or in sequence, and events such as two transitions from the same initial state to different final states cannot both occur at the same time, and are thus mutually exclusive.

19.1.1 Parallel Composition = Tensor Products

When we bring together a system with images states labeled by images 03 and a system with images states labeled by images , we form a composite system with images states labeled by pairs of labels images . For example, if we bring together two bits, we obtain a system with four states that can be labeled as images , images , images , and images . The composite labels such as images are often written simply as strings images , and it should be clear from the context that it is a concatenation of two symbols and not a product of two numbers. In the two‐bit case we write the composite labels as binary strings images , and 11.

Now, suppose you prepare the input of the first system with the value images and the input of the second one with the value images and let images act on the first system and images on the second one. Your chance of observing the output images , that is, the first system in images and the second in images , is images . This is because the actions of the two machines are independent, and thus the probability that transitions images to images in the first machine and images to images in the second machine will happen is the product of the two, that is, images . The images stochastic matrix that describes transitions in the composed system between images and images is written as images and has matrix elements images . The symbol images stands for the tensor product of two matrices. Our definition of images can be applied to any two matrices images and images regardless of their shape and properties. This includes any two vectors as they can be viewed as matrices with just one column. In particular, if the first system is described by the probability vector images with components images and the second one by the probability vector images with components images and if the two systems are independent, then the composed system is described by the tensor product vector images with images components images . Here is an example of a tensor product of two vectors images and images and a tensor product of a images matrix images with entries images and any matrix images (the images matrix has a characteristic block form)

19.11 equation

It should be stressed, however, that not all probability vectors of composed systems and not all stochastic matrices operating on such systems can be written as tensor products. For example, consider two bits and a controlled‐NOT operation defined as follows: flip the bit value of the second bit if the first bit has value 1 and do nothing otherwise. This operation can correlate the two bits, that is, evolve a probability vector that is a tensor into a probability vector that is not,

19.12 equation

Following some manipulation, you will see that neither the controlled‐NOT nor the correlated probability vector at the output admit a tensor product decomposition. As we shall soon see, a similar, but much more subtle, effect called entanglement will be responsible for many counterintuitive features of quantum theory.

19.1.2 Sequential Composition = Matrix Products

If a machine images is followed by another machine images , the resulting machine is described by the matrix product images (note the order in which we multiply the matrices). This follows from the axiom that asserts that the probability of mutually exclusive events adds up.

We may argue that any transition between input images and output images in the composite machine can happen in images mutually exclusive ways, namely through images intermediate states images . The probability that the input images evolves into the output images via the intermediate states images is given by images . Reading from right to left, we see that first images evolves into images with the probability images and subsequently images evolves into images with the probability images . The probability for this particular transition is images . If we vary images , we obtain alternative paths connecting the input images with the output images . Thus, we must sum over all values images . Consequently, the stochastic matrix of the new machine is the matrix product images with entries images . For example, Eq. 19.13 illustrates our discussion in the case of two machines operating on two bits.

19.13 equation

The probability of the images transition can be written as images .

Here we have made a tacit assumption that the matrices images and images act on the same number of bits. If this is not the case, we can always make them act on the same number by introducing the identity operation (the operation that simply maps inputs directly to outputs) in parallel to the smaller machine. For example, if images acts on images bits, and images acts on the first images bits, then the stochastic matrix describing the overall evolution is given by

19.14 equation

In summary, when we compose two independent machines in parallel, we take tensor products and when in sequence, we take matrix products. The results are new stochastic matrices. The tensor product is associative, images , so we can extend machines to act on any number of bits. This way, we can construct stochastic matrices of complicated machines composed out of many elementary submachines and view them as computers made out of elementary gates. Does this approach describe all possible computations?

19.2 Logically Impossible Operations?

It seems obvious that all possible computations are described by stochastic matrices. Surprisingly, this is not the case – the physical dynamics can be more subtle. In order to see this, let us define two new machines. We will call the first one the square root of NOT, also written as images , because when this particular machine is followed by another identical machine, the output is always the negation of the input. The flow of probabilities in such a machine can be expressed schematically as

19.15 equation

The second machine will be called the square root of SWAP. The SWAP operation interchanges the bit values of two bits, for example, images . The square root of SWAP (images ) operates on two bits in such a way that two consecutive applications result in the full SWAP. Note that the images is the identity when restricted to inputs 00 and 11 and acts as the images when restricted to inputs 01 and 10. Thus, once we find a stochastic matrix for the images we will be able to construct a stochastic matrix for the images .

Suppose the square root of NOT is indeed described by some stochastic matrix images . The matrix product images should give a stochastic matrix corresponding to the logical NOT. This leads to contradiction because

equation

recalling that images . There is no stochastic matrix images such that images gives the logical NOT. A similar line of arguments shows that there is no stochastic matrix for the square root of SWAP. Thus, the square root of NOT is logically impossible, and so is the square root of SWAP.

It may seem reasonable to argue that since there is no such operation in logic, the images and the images machines cannot exist. But they do exist! Some of them are as simple as half‐silvered mirrors.

A symmetric beam‐splitter is a half‐silvered mirror that reflects half the light that impinges upon it, while allowing the remaining half to pass through unaffected. It has two input ports and two output ports. We label the two input ports and the two output ports by “0” and “1” as shown below.

Geometry for action of a machine.

Let us aim a single photon04 at such a beam‐splitter using one of the input ports, for example, port “0.” What happens? One thing we know is that the photon doesn't split in two: we can place photodetectors wherever we like in the apparatus, fire in a photon, and verify that if any of the photodetectors registers a hit, none of the others do. In particular, if we place a photodetector behind the beam‐splitter in each of the two possible exit beams, the photon is detected with equal probability at either detector, no matter whether the photon was initially fired from input port “0” or “1.” You may conclude that the beam‐splitter is just a random switch. Moreover, it may seem obvious that at the very least, the photon is either in the transmitted beam “0” or in the reflected beam “1” during any one run of this experiment. However, that is not necessarily the case. Let us introduce a second beam‐splitter and let us place two normal mirrors so that both paths intersect at the second beam‐splitter.

Illustration of stochastic matrices that are denoted as P - Q and QP, respectively.

If we assume that a beam‐splitter is a random switch, then simple matrix multiplication of stochastic matrices shows that a concatenation of two beam splitters is also a random switch,

19.16 equation

This makes perfect sense, apart from the fact that if we set up such an experiment, it is not what happens! It turns out that in the arrangement shown above, that is, when the optical paths between the two beam splitters are the same, the photon always strikes detector 1 and never detector 0. Thus, a beam‐splitter acts as the square root of NOT gate.

Is there something wrong with our reasoning here? Why does probability theory fail to predict the outcome of this simple experiment? One thing that is wrong is the assumption that the processes that lead the photon from the initial state to the detector 0 are mutually exclusive. In reality, the photon must, in some sense, have traveled both routes at once! Another important issue is the status of probability theory. There is no reason why probability theory, or any other a priori mathematical construct, should make any meaningful statements about outcomes of physical experiments. For this we need a physical theory – knowledge that is created as the result of conjectures, experimentation, and refutations. Enter quantum mechanics!

19.3 Quantum World of Probability Amplitudes

In order to calculate probabilities that agree with experimental data, we must introduce the concept of probability amplitudes – complex numbers images such that the quantities images are interpreted as probabilities. Probability amplitudes are added for mutually exclusive events and multiplied for independent events. In particular the rule of additivity of probability amplitudes replaces the classical axiom of additivity in probability theory, and it is this simple rule that sets the quantum and the classical worlds apart. It states:

This is the essence of quantum mechanics – the rest is just a set of convenient mathematical tools developed for the purpose of the bookkeeping of probability amplitudes.

In order to see this rule in action, consider an event that can happen in two alternative ways with probability amplitudes images and images . It is convenient to write these two complex numbers in terms of their moduli and phase factors: images and images . The probability amplitude of this event is images and the probability images of the event is then given by

19.17 equation

The very last term on the r.h.s. marks the departure from the classical theory of probability. The probability of any two mutually exclusive events is the sum of the probabilities of the individual events, images , modified by what is called the interference term, images . Depending on the relative phase images , the interference term can be either negative (destructive interference) or positive (constructive interference), leading to either suppression or enhancement of the total probability images . Note that the important quantity is the relative phase images rather than the absolute values images and images . These phases can be very fragile and may fluctuate rapidly due to spurious interactions with the environment. In this case, the interference term may average to 0 and we recover the classical addition of probabilities. This phenomenon is known as decoherence. It is very conspicuous in physical systems made out of many interacting components and is chiefly responsible for our classical description of the world – without interference terms we may as well add probabilities instead of amplitudes. However, there are many beautiful experiments in which we can control the phases of the amplitudes and observe truly amazing quantum phenomena.

One of the simplest quantum devices, and also the simplest quantum computing device, allows control of quantum interference. Mach–Zehnder interferometer is shown here.

Geometry for stochastic matrix of the new machine.

Between the beam splitters, we have inserted slivers of glass with a different thickness for each of the possible paths. The glass slows down propagating photons and introduces slight delays during their journey between the two beam splitters. The slivers of glass are usually referred to as “phase shifters” and their thicknesses, images and images , are measured in units of the photon's wavelength multiplied by images . We have labeled the two input and the two output ports of the interferometer as 0 and 1. When we fire a single photon into the input port 0, it can end up in the detector 0 in two alternative ways, as shown below.

Geometry for flow of probabilities in a machine.

In each of the beam splitters, the incoming photon is reflected with a probability amplitude of images and transmitted with a probability amplitude images .05 The effect of the slivers of glass is to multiply the probability amplitude on the lower path (labeled as path 0) by images and on the upper path (labeled as path 1) by images . The lower path involves two transmissions and the upper path two reflections. The probability amplitude of the two consecutive reflections including the phase shift is images and the probability amplitude of the two consecutive transmissions and the phase shift on the lower path is images . By using the rule of additivity of probability amplitudes, we can calculate the probability that the photon ends up in the detector “0,”

equation

The same approach allows us to calculate the probability amplitudes, images , and the probabilities, images , of any images to images transition (images ), and tabulate them in matrices,

19.18 equation
19.19 equation

where images . The entries of the stochastic matrix images are obtained from the corresponding probability amplitudes – we take the squared moduli of probability amplitudes, images . However, here the transition matrix is the matrix of amplitudes images , not the matrix of probabilities images ! Once we operate on amplitudes, the rules of the game are identical to those of classical probabilities: we multiply amplitudes of independent events and add amplitudes of “mutually exclusive” events.

The matrices that describe transitions in quantum machines are not just any matrices with complex entries. The probabilistic interpretation of amplitudes requires that any matrix images that describes an admissible physical operation is unitary, that is, it satisfies images where images , known as the “Kronecker delta,” is a symbol that is defined to be 0 for images and 1 for images . In matrix form, the unitarity condition reads

19.20 equation

Recall that the adjoint or Hermitian conjugate images of any matrix images with complex entries images is obtained by taking the complex conjugate of every element in the matrix and then interchanging rows and columns images .

Probably the most striking observation when we inspect the transition probabilities in quantum interference experiments is that the qubit reacts only to the phase difference, images . The phases images and images in the Mach–Zehnder interferometer can be set up independently from each other, and the two arms of the interferometer may be miles apart, and yet it is the difference between the two phases that determines which of the two detectors will eventually click. The inescapable conclusion is that somehow the photon must have experienced both of them! It is very counterintuitive, but this is what experiments show. Between the two beam splitters, the photon is in a truly quantum state that is referred to as a quantum superposition of the lower and the upper path. We have labeled these paths as 0 and 1, and thus the two binary values can coexist. Quantum computers can operate on such superpositions of the binary values, a property that sets them apart from their classical counterparts.

If we remove the phase shifters from the interferometer, which is equivalent to setting images , the formula 19.19 shows that the two beam splitters affect the logical NOT. One can also set up experiments that demonstrate the existence of images . Addition of probability amplitudes explains the behavior of images , images , and many other gates, and correctly predicts the probabilities of all the possible outputs no matter how we concatenate the gates. This knowledge was created as the result of conjectures, experimentation, and refutations. Genuine scientific knowledge cannot be certain, nor can it be justified a priori. Instead, it must be conjectured, and then tested by experiment. Hence, reassured by the physical experiments that corroborate this theory, logicians are now entitled to propose new logical operations images and images . Why? Because faithful physical models for them exist in nature!

19.4 Interference Revisited

The optical Mach–Zehnder interferometer is just one way of performing a quantum interference experiment – there are many others. Atoms, molecules, nuclear spins, and many other quantum objects can be prepared in two distinct states, internal or external, labeled as 0 and 1 and manipulated so that transition amplitudes between these states are the same as in a beam‐splitter or in a phase shifter. However, there is no need to learn these technologies to understand quantum interference. You may conveniently forget about any specific technology (hardware) and refer to any quantum object with two distinct states labeled 0 and 1 as a quantum bit or a qubit. The interference of a single qubit can then be visualized as

equation

This diagram shows all possible transitions between the states 0 and 1, and their corresponding probability amplitudes; it has the same features as the diagram of the Mach–Zehnder interferometer. We can view the action of the interferometer as a sequence of three elementary operations called quantum logic gates: a beam‐splitter images followed by a phase shift images , followed by another beam‐splitter images . Each quantum gate is described by its matrix of transition amplitudes

19.21 equation

where images . We usually draw this sequence of operations as a quantum circuit,

equation

Quantum circuit diagrams are read from left to right. The horizontal line represents a quantum wire, which inertly carries a qubit from one quantum operation to another. The wire may describe translation in space, for example, atoms traveling through cavities, or translation in time, for example, a sequence of operations performed on a trapped ion. This is a sequential composition of gates and, as with the case of stochastic matrices, all we have to do is the matrix multiplication,

equation

In one swoop, this takes care of the multiplication and addition of probability amplitudes corresponding to different interfering paths in the interferometer. The phase shift images effectively controls the evolution and determines the output.

We should mention here that the phase matrix images contains only the relative phase. This is because images can be written as images , and we have already seen that it is the relative phase that really matters.

We have already mentioned that a qubit undergoing quantum interference enters a peculiar quantum state, a superposition of 0 and 1, in which it simultaneously represents the two binary values. In the classical world, the state of a physical bit is described by a probability vector; a qubit, in its all possible superpositions, is described by a vector of probability amplitudes, known as a state vector, which evolves as

19.22 equation

A sequence of operations in quantum interference evolves the state vector of the qubit as

19.23 equation

where we have omitted an overall phase factor images from the output state. Probability vectors can be constructed at any stage by squaring the moduli of the components of the evolving state vector. In particular, at the output, the two binary values 0 and 1 are registered with respective probabilities images and images .

In general, any isolated physical system with images distinguishable states is described by a state vector with images complex components and any machine whose action depends on no other input or stored information and which performs a computation on a physical system with images distinguishable states is described by some images matrix of probability amplitudes, that is, an images unitary matrix.

Last but not least, quantum interference may be implemented in a number of different ways. For example, in the lore of quantum computation, a beam‐splitter is often substituted by the very popular Hadamard gate, images ,

19.24 equation

and single qubit interference is represented as

equation

The transition probability amplitudes in the circuit are calculated by the matrix multiplication images ,

19.25 equation

This simple quantum process contains, in a nutshell, the essential ingredients of quantum computation. The sequence of Hadamard–phase shift–Hadamard will appear over and over again. It reflects a natural progression of quantum computation: first we prepare different computational paths, then we evaluate a function that effectively introduces phase shifts into different computational paths, then we bring the computational paths together at the output.

19.5 Tools of the Trade

19.5.1 Quantum States

Although the addition of probability amplitudes is basically all we need to know to practice quantum mechanics, it is very convenient to have good tools and notation for the “bookkeeping” of probability amplitudes. A mathematical setting for the quantum formalism is a vector space with an inner product, often referred to as a Hilbert space.06 Here we are primarily interested in images , the space of column vectors with images complex entries. We shall follow the notation introduced by Paul Dirac in the early days of the quantum theory and write column vectors as

19.26 equation

and the adjoint vector, images , as images ,

19.27 equation

In this notation, the scalar product of two vectors, images and images , is written as

19.28 equation

Much of linear algebra grew out of the need to generalize the basic geometry of vectors in two and three dimensions. The scalar product enables the definition of angles, lengths, and distances. Vectors for which images are perpendicular – in images they are called orthogonal. Any maximal set of pairwise orthogonal vectors forms an orthonormal basis and any vector can be expressed as a linear combination of the basis vectors. We have already used the standard orthonormal basis in images , denoted as images , where images stands for a column vector with 1 in the images th entry and 0s elsewhere. For example, the standard basis in images is images but there are infinitely many other orthonormal bases, for example, images where images .

Once we have defined an inner product, we can define the norm, or the length, of images as images . Using the norm, we can define the distance between any two vectors images and images as images ; we say that images is within a distance images of images if images .

  • Quantum states : For any isolated quantum system that can be prepared in images distinguishable states, we can associate a space images such that each vector of unit length represents a quantum state of the system.

Quantum states of individual qubits are rather special. The complex components of the state vector

19.29 equation

are constrained only by the normalization condition images and can be conveniently parameterized as images and images , where images and images . Thus, we can map all of the single qubit states onto the surface of a sphere, that is, we can interpret images as the polar angle and images as the azimuthal angle. The sphere is called the Bloch sphere and the unit vector images defined by images and images is called the Bloch vector. The Bloch vector in the Euclidean space should never be confused with the state vector in the Hilbert space.

equation

Please note that the two basis states images and images are represented on the Bloch sphere as two antipodal Bloch vectors with images and images . The Bloch sphere at this stage may appear as an unnecessary complication but it will soon become a useful tool that helps to visualize relations between states of individual qubits and single qubit unitary operations.

We shall often refer to quantum systems with images distinguishable states as quantum systems in images . The vector space structure of quantum states means that if images and images are two possible quantum states, then the properly normalized superposition images is also a valid quantum state. This is sometimes referred to as the superposition principle. From a mathematical point of view, it is a trivial remark, but we have already seen that its physical consequences are anything but trivial. It implies, for example, that a single photon can take two different paths in its passage through an interferometer, that an atom can be both in its ground and excited state, in general, that a qubit can represent both logical 1 and 0 at the same time.

19.5.2 Unitary Operations

Any linear operation on vectors is called an operator and any operator images is completely determined by its action on the basis vectors. It can be written as

19.30 equation

where images is the matrix with 1 in the images entry and 0s elsewhere. The result of images acting on vector images is images , that is, vector images multiplied by a complex number images . In the Dirac notation, the matrix elements images are written as images , which follows directly from the expression 19.30 when we sandwich images between images and images , and use images , images . Here we will usually refer to the standard basis in images and make little distinction between operators and matrices, still one should remember that a matrix representation is basis dependent and the operator images may be represented by different matrices in different bases.

We refer to properties of operators by referring to the properties of their matrices. For example, an operator images is called unitary if its matrix is unitary, that is, images , it is called Hermitian if images , and it is called normal if images . Both unitary and Hermitian operators are normal and all normal operators can be diagonalized by unitary matrices images . More precisely, images is normal if and only if there exists a unitary images such that

19.31 equation

where images is the diagonal matrix, images . The diagonal elements images are known as the eigenvalues or the spectrum of images and the column vectors of images , which we can write as images , are the corresponding eigenvectors of images , that is images and images , images . Thus, any normal operator admits the spectral decomposition, images . Eigenvalues of Hermitian operators are real whereas for all unitary operators they are complex numbers of unit length: images for some real images .

Unitary operators are special – they preserve the scalar product. If images and images then images and

19.32 equation

This implies that unitary operations preserve the length of state vectors; the probabilities are conserved.

  • Quantum evolution: Evolution of any isolated quantum system in images is described by a unitary operator acting on this space.

The set of all unitary images matrices with matrix multiplication forms a group denoted as images ; the unit element is the images identity matrix and the inverse of images is obtained by taking the Hermitian conjugate images . The order in which we multiply matrices matters, usually images , thus the images group is non‐Abelian. We have already mentioned that we are allowed to ignore overall phase factors. We can avoid ambiguities of overall phase factors by restricting ourselves to matrices that belong to the special unitary group images , that is, all unitary images matrices with determinants equal to unity. Having said this, the convention of writing phase gates in the form images rather than images means that our matrices are often not in images , but then we can always fix it by playing with global phase factors.

Any unitary matrix can be represented as the exponential of some Hermitian matrix, images and a real coefficient, images ,

19.33 equation

This is analogous to writing complex numbers of unit moduli in the polar form as images . The time evolution of a quantum state is a unitary process that is generated by a Hermitian operator called the Hamiltonian, images . The Hamiltonian contains a complete specification of all interactions within the system under consideration. In an isolated system, the state vector images changes smoothly in time according to the Schrödinger equation

19.34 equation

For time‐independent Hamiltonians the formal solution reads

19.35 equation

Here images denotes Planck's constant, which has the value

19.36 equation

However, theorists always choose to work with a system of units where images .

Equation 19.33 acquires a deceptively simple form when images squares to the identity, images . In this case we obtain

19.37 equation

Among the most popular single qubit operations are the PAULI gates, described by the Pauli matrices images , images , and images ,

19.38 equation

Two of the PAULI gates are already very familiar, the images gate is a special phase gate with images and the images gate is the logical NOT gate, but we have written them again for completeness. The two gates, images and images , are often referred to as the bit flip and the phase flip, respectively. The Pauli matrices square to the identity

19.39 equation

and they satisfy the relations

19.40 equation

As well as being useful gates in their own right, the combination of the three Pauli matrices and the identity is useful in providing a decomposition of images Hermitian matrices. Any images matrix can be written as

19.41 equation

where images represents the vector of the Pauli matrices images . This decomposition allows us to see some special properties of one‐qubit unitary rotations. Any element of images can be written as

19.42 equation

where images is a unit vector with three real components images , images , and images . There is a remarkable connection between unitary matrices that are in images and three‐dimensional rotation matrices, which form a group denoted as images . In our particular case, applying a unitary operation images to a qubit described by a Bloch vector images amounts to rotating images by the angle images about the axis defined by the unit vector images .

Illustration of two normal mirrors such that both paths intersect at a second beam-splitter.

The correspondence is established by the formula

19.43 equation

where images is the Bloch vector images rotated by the angle images about the axis defined by the unit vector images . This gives a very simple geometrical solution of the Schrödinger equation with the Hamiltonian

19.44 equation

The vector images with components images ) is called the Rabi vector and images is often referred to as the Rabi frequency. The Bloch vector images simply rotates around the Rabi vector images with the Rabi frequency images equal to the length of images .

19.5.3 Quantum Measurements

The state of the form images contains all information about the qubit, but when we measure the bit value, we register either 0 or 1 with probabilities images and images , respectively. Although the measurement can, in principle, be explained in terms of unitary operations, here we will view it as a special, non‐unitary, quantum gate, defined as

equation

where images or images . If we choose to measure the bit value of a qubit in state images then the result of the measurement is 0 with probability images and 1 with probability images . The outcome of the measurement, images , is written in the icon representing the measurement, and the output state of the measurement gate is images . However, do not think that by measuring a given qubit over and over again you could accumulate enough data to estimate the magnitudes of the two probability amplitudes. This does not work because measurements modify quantum states. As you can see on the diagram above, if the measurement result is 0, the post‐measurement state of the qubit is no longer images , but images , and if the result is 1 the post‐measurement state is images . The original state images is irretrievably lost. This sudden change of state, images with probability images and images with probability images , due to a measurement is often called a “collapse” or a “reduction” of the state. The status of this “reduction” in the formulation of quantum mechanics is still debated.

A convenient mathematical formalism for quantum measurements performed on any quantum objects in images is based on projection operators. The expression images describes a projection onto images . Indeed, the result of images acting on any vector images is images , that is, vector images multiplied by images . The sum of projections on vectors from any orthonormal basis gives the identity operator, that is,

19.45 equation

This is a useful expression, known as the decomposition of the identity. We can use it to expand any vector images in any basis as

19.46 equation

Any measurable physical property of a quantum system in images , which takes values in some set of symbols labeled by images , is represented by a set of projectors images that satisfy images and form the decomposition of the identity images .

  • Quantum measurement: Given a quantum system in state images the measurement of a physical property described by projectors images , satisfying images and images , gives outcome images with the probability images and leaves the system in a properly normalized state
    equation
    that is, images if images .

For example, the standard measurement on a qubit is described by the projectors images and images that form the decomposition of the identity images . Given a qubit in state images , the measurement gives outcome images , images , with probability images and leaves the system in state images . However, we can also measure other properties using, for example, the projectors images and images , images . The two projectors define another measurement with two possible outcomes labeled by images and images . In the following, unless specified otherwise, all measurements are assumed to be performed in the standard basis. This is because any measurement can be reduced to the standard measurement by performing some prior unitary transformation. For example, images and images and images , images , thus measuring images on images is equivalent to measuring images on images ,

equation

In some textbooks, quantum measurement is associated with Hermitian operators with the spectral decomposition images (images ) and the different outcomes are described by the real values images . As a result, it is often falsely claimed that the outcomes of quantum measurements must be labeled by real numbers. We emphasize, however, that we are really just labeling the measurement results, and hence we can associate any symbols we wish with the possible outcomes.

19.6 Composite Systems

Given that quantum machines are described by their respective unitary matrices, and that the rules of addition and multiplication of amplitudes are the same as those of probabilities, we can construct more complex machines following the familiar composition rules: when two quantum machines, which are described by some unitary matrices images and images , act in parallel, their action is described by the tensor product images , and when the action of images is followed by images , the resulting unitary matrix is the matrix product images . You can check that both tensor and matrix products of unitary matrices give another unitary matrix, that is, both parallel and sequential compositions of quantum devices give another quantum device, as expected. In both the cases the order does matter, that is, in general images and images . Since the tensor product is associative, images , we can extend quantum operations to any number of qubits.

If we bring two qubits together, we form a system with images distinguishable states, which we label as 00, 01, 10, and 11. The circuits below show six unitary operations on the two qubits,

equation

The first four are described, respectively, by images unitary matrices that are tensor products images , images , images , and images ,

equation

Please note that images . The images ‐fold tensor product of Hadamard gates images , that is, applying images to each qubit, is referred to as the images ‐qubit Hadamard transform. The matrices of the two remaining gates, known as the square root of SWAP and controlled‐NOT, stand out as they do not admit a tensor product decomposition in terms of single‐qubit operations,

19.47 equation

There is a whole family of square root of SWAP matrices. Our choice here, with the images phase factor in the central sub‐matrix, is directly related to its most common experimental realization (the Heisenberg interaction). The controlled‐NOT (c‐NOT ) performs the bit flip, that is, logical NOT, on the second (target) qubit if the first (control) qubit represents logical 1 and does nothing if the control qubit represents 0.

Let us take a closer look at how the mathematical formalism introduced in the previous section can be applied to composite systems, that is, systems made out of several subsystems. For this we need to revisit the tensor product operation. We shall start with the simplest possible composite system, namely two qubits.

Two isolated qubits live in a tensor product space denoted as images . The tensor product operation is a way of putting vector spaces together to form larger vector spaces. When we bring two qubits together, the first one in state images and the second in state images , we form a new state images often written as images , or simply images , or even images . The elements of images are linear combinations of images . The scalar product in images is defined by the identity

19.48 equation

and the space can be spanned by the four vectors of the standard basis images , images , images , and images , usually written as images , images , images , and images . Thus, if

19.49 equation

then the state of a composite system can be written as

19.50 equation

where we have used the fact that the tensor product is a linear operation. However, not all vectors in images are of the form images . To see this, consider the most general quantum state of two qubits

19.51 equation

The complex amplitudes images are constrained only by the normalization condition images . This means that, in general, images , where images , which implies that not all quantum states of two qubits can be written in the form images . Those that can are called separable and those that cannot are called entangled. For example, out of the two states

19.52 equation

the first one is separable because it can be written as images whereas the second one is entangled because it does not admit such a decomposition. Thus, a system of two qubits as a whole can be prepared in a quantum state that does not allow the attribution of separate state vectors to its parts. Four popular entangled states are the so‐called Bell states,

19.53 equation

In order to entangle two (or more) qubits, we need gates that couple two qubits, for example, the square root of SWAP or the controlled‐NOT, for example, the circuit

equation

evolves the four inputs, images , images , into the four Bell states. At present, the most common source of entangled qubits is a quantum optical process called “parametric down conversion.” A photon from a laser beam enters a beta‐borium‐borate crystal and gets absorbed, exciting an atom in the crystal in the process. The atom subsequently decays, emitting two photons whose polarizations are entangled.

We can extend the tensor product operation to any number of qubits. The images ‐fold tensor product space images is the images dimensional complex vector space with the standard computational basis labeled by all binary strings of length images . The elements of images are all possible linear combinations of the vectors from the computational basis, in particular any quantum states of images isolated qubits can be written as

19.54 equation

In addition to the single‐qubit Pauli operations, we can also define bit flips and phase flips on selected qubits, images and images , where the binary string images indicates the location of the flip, for example, images , images . The Hadamard gate squares to the identity and it can turn the action of the images gate into images and vice versa; the circuit images is equivalent to the action of single images and conversely images . In general, the Hadamard transform can turn images into images and vice versa

19.55 equation

The two circuit identities represent the two relations, images and images .

Labels, that is, binary strings images , can be used to define unitary operations. For example, for any images and any constant images in images we can express images and images as

19.56 equation
19.57 equation

and the Hadamard transform on images qubits can be defined as

19.58 equation

and implemented by applying the Hadamard gate to each of the images qubits. This action is easily understood by using the fact that

equation

Projectors images for images are tensor products of projectors pertaining to individual qubits, for example, images . They form the decomposition of the identity images and define the standard measurement on images qubits. More precisely, given images qubits in some quantum state images we can measure them qubit by qubit obtaining binary string images with the probability images . For example, for images we may register the binary string images

equation

This happens with the probability images and the state after the measurement is images . But, what if we choose to measure only some of the five qubits, say the first one?

equation

In this case, the measurement is described by the two projectors

19.59 equation

They satisfy images . The two results of the measurement are 0 and 1 with the probabilities images and images , respectively. The corresponding state after the measurement is a properly normalized result of the projection images and images . Translating this into a simple algebra, we write the initial state images as

19.60 equation

where

19.61 equation

and

19.62 equation

Thus, the result of the measurement on the first qubit is 0 with the probability images or 1 with the probability images , and the post‐measurement states are images and images , respectively.

This shows us that there is more to quantum states of images qubits than just being unit vectors in images . When we have a composite system, we can ask questions about the relation of a quantum system of the whole to quantum states of its components. The tensor product structure of the underlying Hilbert space is surprisingly rich and there is much more in images as compared to images .

19.6.1 Density Operators

The notion of an entangled state will probably make you wonder about the usefulness of state vectors as a good description of quantum states. Indeed, the tensor product structure allows us to describe a separable state of two qubits by using a state vector for each of the qubits. However, when we have an entangled state, this is not the case – we cannot attribute state vectors to individual qubits. We shall not discuss this problem in detail here but let us mention that in order to describe one subsystem of a larger system, we are forced to generalize the concept of a quantum state to the density matrix. All the states that we have met so far have been described by a state vector images and are known as pure states. These can be rewritten as a density matrix of images . From this definition, we can see how unitary evolution must be represented, images . However, the point of introducing density matrices is that they are more general than pure states, we can represent what are known as mixed states. These can be expressed in the form

equation

where images , and cannot be written as a single state images . How does this relate to the state of a subsystem? Consider that we have a pure state over two subsystems images and images ,

equation

but we would like to describe the state of just subsystem A. If we were to measure subsystem B, then we would get the result images with probability images , leaving subsystem A in the (unnormalized) state

equation

where images , and we can make similar statements for all possible measurement results on the images subsystem. If we wish to describe subsystem images , we do not measure images , but we can treat it as if we measured it, but did not know the measurement result,that is, subsystem A is in the state images with probability images . The density matrix formalism allows us to describe this by

equation

where the definitions of the states automatically encapsulate the probabilities. Mathematically, this procedure is known as taking the partial trace over subsystem images ,

equation

where the images can be any complete basis over subsystem images . The reduced density matrix images is a useful description to be able to determine the outcomes of actions applied only to subsystem images , and is also the first step in quantifying the amount of entanglement shared between two subsystems. Finally, it allows us to easily describe probabilistic operations. For example, if we started with a state images , it could experience a unitary rotation images with probability images , or nothing could happen with probability images . If we don't know whether it happens or not, we have to take into account the fact that it might have happened by describing our new state as

equation

For pure states, which are sufficient to describe ideal computations, state vectors and density matrices are entirely interchangeable, and we tend to stick to state vectors for simplicity.

19.7 Quantum Circuits

Many interesting quantum operations can be obtained by parallel and sequential compositions of quantum gates. For example, the circuit below, which you should read from left to right, affects the operation images , which you should read from right to left.

equation

It shows how to construct the controlled‐NOT with the square root of SWAP (denoted images ) and two phase gates images (images ) and images (images ) that occur often enough to warrant separate symbols

19.63 equation

The square root of NOT, all possible phase gates, and the square root of SWAP suffice to construct any unitary matrix acting on any number of qubits. These three operations do not have any classical analogs. Consequently, it should not be very surprising that most machines built out of these operations do not have any classical analogs and some of their properties are counterintuitive.

The square root of NOT, phase gates, and the square root of SWAP are not special, there are many sets of gates that can be combined to form all possible unitary operations. Such a set is said to be universal. Some gates are very popular because of their nice mathematical properties and some because of their simplicity of experimental implementation.

The gates images are known as the CLIFFORD gates. The Clifford group contains all unitary operations that can be written as a products of tensor products of the Clifford gates and it plays an important role in the theory of quantum computation and quantum error correction. The Clifford gates are not universal, but it is known that CLIFFORD together with any other single qubit gate, not generated by the gates in CLIFFORD, form a universal set of gates. Typically, the standard discrete set of universal gates is CLIFFORD augmented by the phase gate images . It can be used to approximate any unitary operation.

Given controlled‐NOT we can implement any controlled‐images , for some single‐qubit unitary transformation images . The controlled‐images gate (c‐images ) applies the identity transformation to the target qubit when the control qubit represents logical 0 and applies the operation images when the control qubit represents logical 1. Any unitary operation on a single qubit images , up to an overall phase factor, can be written as

19.64 equation

for some unitaries images and images . Thus, any controlled‐images operation can be constructed using controlled‐NOT gates as

equation

and, subsequently, any controlled‐controlled‐images as

equation

where images is any unitary matrix satisfying images . The choice images leads to another useful gate, known as the controlled‐controlled‐NOT gate ( images NOT ), or the Toffoli gate. It flips the target only if the two control qubits are both set to 1 and does nothing otherwise. This gate appears frequently in circuits that evaluate Boolean functions and we shall discuss its action in more detail later on.

19.7.1 Economy of Resources

Unitary operations on one qubit are described by images unitary matrices, on two qubits by images matrices, on three qubits by images matrices and, in general, on images qubits by images matrices. The state vector of images qubits has images complex components images that evolve as images , that is

19.65 equation

Quantum computation is a carefully controlled quantum interference that involves not one, but many qubits. A sequence of quantum operations on images qubits, images , images , …, images can be visualized as the circuit

equation

Each horizontal line represents one qubit. A complex quantum interference involving transitions between the images basis states is described by the matrix product

19.66 equation

However, each unitary operation images may have an internal structure – it may be composed out of unitary operations acting in parallel on selected qubits, for example, as in the circuit below

equation

We construct images , images , …, images by taking tensor products of the elementary gates acting in parallel. For example, images , images ,and so on. Thus, the whole circuit is a matrix product of tensor products of elementary gates.

Needless to say, building large quantum circuits requires large supplies of preselected quantum gates. The total number of gates in the circuit is called the size of the circuit. The depth of the circuit images is the number of time steps required to complete the computation, assuming that each gate operation takes one time step and that gates acting on distinct bits can operate simultaneously. This is the number of unitary layers made out of tensor products, that is, images . The width of the circuit is the maximum number of gates that act in any one time step. How many different quantum gates do we need as our elementary building blocks and how many will be used in our constructions? This seemingly innocuous question is rather deep and leads to the studies of the universality of preselected components and the complexity of quantum circuits.

Any unitary operation on images qubits, that is, any images unitary matrix, can be constructed as a quantum circuit. Moreover, in order to accomplish this task, all we need is an ample supply of very few types of elementary gate. However, it should be stressed that no matter what our choice of elementary building blocks, constructing a unitary operation on images qubits is not easy and the size of the circuit, images , usually grows very rapidly with images . In order to quantify this growth, we shall frequently use the asymptotic notation that suppresses multiplicative constants. Given a positive function images , the symbol images means bounded from above by images for some constant images (for sufficiently large images ). For example, images is images . Another common symbol, images , means bounded from below by images for some constant images , and images means both images and images . A circuit is polynomially bounded if its size is images for some constant images . When we build quantum circuits, we care about the economy of resources, after all each gate we use may cost us money. Circuits with logarithmic images , linear images , or polynomial size are considered reasonable, whereas circuits with exponential size, images , are viewed as rather expensive. We shall return to this point later on.

19.7.2 Computations

The circuits and quantum gates are more than just tools for constructing unitary operations. We want to give them some computational meaning, associate them with algorithms, and quantify the complexity of these algorithms by patterns and numbers of gates in the corresponding circuits. Classical computers evaluate Boolean functions,

19.67 equation

Quantum computers embed function evaluation into reversible computation and evaluate them as a unitary operations

19.68 equation

where images , images . The corresponding circuit diagram is (for images ),

equation

and the unitary matrix can be written as

19.69 equation

with the summation over all images and images .

Any Boolean function can be expressed as a formula containing only binary addition and multiplication. For example, the elementary Boolean operations negation (NOT, images ), disjunction (OR, images ), and NAND (images ) can be expressed in terms of addition images and multiplication images as

19.70 equation

where images . Once we have NOT, AND, and OR, we can write any Boolean function as a disjunction of conjunctions. For example, if a Boolean function images takes value 1 only for the string 0110, that is, when images , then images can be expressed as a conjunction,

19.71 equation

where we have written images instead of images . If images takes value 1 only for the strings 0110 and 1000 then images can be expressed as a disjunction of the two conjunctions,

19.72 equation

In general, any images can be written as a disjunction of conjunctions, which is called the disjunctive normal form (DNF). The corresponding formula can be easily deduced from the truth table of images – we find all inputs images for which images , then for each particular string, images , such that images , we construct a conjunction, images , such that images if and only if images , and then we take the disjunction of all images . We have also used COPY because each images in the DNF expansion of images requires its own copy of images to act on.

Quantum function evaluation can be then implemented with quantum gates such as the controlled‐NOT

19.73 equation

which takes care of the binary addition, images , in a reversible manner and the controlled‐controlled‐NOT (Toffoli gate)

19.74 equation

which takes care of the binary multiplication images , or the logical AND, and effectively all the logical connectives we need for arithmetic.

The controlled‐NOT also takes care of COPY of binary digits,

19.75 equation

for images . One might suppose that this gate could also be used to copy superpositions such as images so that

19.76 equation

for any images . This is not so! The unitarity of the c‐NOT requires that the gate turns superpositions in the control qubit into entanglement of the control and the target.

19.77 equation

So far, our construction of a quantum circuit that computes images tacitly assumes that we know the truth table of images . Needless to say, this is not the case in real computation – we compute because we do not know the answer. There is a fundamental difference between constructing circuits using look‐up tables and using simple prescriptions called algorithms, which describe how to construct the function with images ‐bits of input from a function with images ‐bits of input. For the vast majority of Boolean functions images , we do not know any better way to “compute” images than to consult the look‐up table. In fact, Claude Shannon used a simple gate counting argument to show that almost any Boolean function images has a circuit size that is lower bounded by images , that is, of images . We are interested in a tiny minority of Boolean function to which this bound does not apply. Their circuits have patterns that we can spot. Any algorithm can be represented by a family of circuits images , where the circuit images acts on all possible input instances of images bits. Any useful algorithm should have such a family specified by an example circuit images and a simple rule explaining how to construct the circuit images from the circuit images . These are called uniform families of circuits. An algorithm is said to be efficient if it has a uniform and polynomial‐size family of circuits.

What makes quantum evaluation of Boolean functions really interesting is its action on a superposition of different inputs images . For example,

19.78 equation

produces images for all images in a single run and one may hope that this is the origin of the power of quantum computation. Unfortunately, this is more complicated. We cannot learn all the values images from the entangled state images because any bit‐by‐bit measurement on the first images qubits will yield one particular value images and the final qubit will then be found with the value images . In order to achieve novel results, different to classical computation, we usually sandwich the quantum function evaluation in between other operations, such as the Hadamard transform, and ask questions about some global properties of images that depend on many values of images , for example, periodicity. For example, the Mach–Zehnder interferometer allows us to determine an unknown relative phase images . In particular, if images is guaranteed to be either 0 or images , we only require one photon to determine this, whereas, classically, two photons are required.

It turns out that, in this case, families of quantum circuits are more powerful than their classical counterparts. One such example is the factoring problem – given an images ‐bit number images , find a list of prime factors of images . The smallest known uniform classical family that solves the problem is of size images , where images is a constant. In contrast, there exists a uniform family of quantum circuits of images size that solve the factoring problem. Since the outcomes of measurements are probabilistic, there is some chance of failure of quantum algorithms, and we describe an acceptable probability of a failure by the parameter images . Of course, if such a failure occurs, we can readily detect it because testing if two potential factors are equal to images is easy.

19.8 Summary

In this chapter, we have explored how computation is a physical process, and the workings of a computer are governed by the laws of physics. This has caused us to replace the classical description of a process, using probabilities and stochastic matrices, with a new description using probability amplitudes and unitary matrices. Many classical mathematical techniques and conclusions translate to this new scenario, such as the composition of gates by tensor products and matrix multiplication, or that all possible operations can be decomposed in terms of a small number of building blocks, the universal gates. These new, quantum, gates subsume the operations of a classical computer, but go well beyond them, allowing the possibility of intrinsically quantum algorithms that are more powerful than their classical counterparts.

Exercises

  1. 19.1 Conjunctive normal form (CNF) is where a Boolean function of the variables images is written as a conjunction (AND images ) of disjunctions (OR images ) of literals. Any Boolean function can be written in this form. Take 2 variables, images and images . Write down, in conjunctive normal form, a Boolean function that returns 1 if the two variables are different, and 0 if the two variables are the same.

    If a function images takes value 1 only for the strings 0110 and 1000, then it can be written inDNF as

    equation

    Rewrite this in CNF.

  2. 19.2 The SAT problem is the oldest known NP problem. That is, its solution is easy to verify but hard to find. The SAT problem asks if there is a consistent solution for the variables images such that a function, written in CNF, gives the solution 1. Are there any solutions to the following function?
    equation

    What are the possible solutions?

    If a function, images , (in CNF) has images sets of three variable disjunctions, and images variables images (this is known as the three‐SAT problem), then how would you expect the method you just applied to scale?

  3. 19.3 If you have a classical circuit that accepts images bits as inputs and produces as its output a single bit, then how many possible circuits are there? (i.e., how many unique functions are there?)

    Consider constructing a circuit of images nodes. Each node accepts two input bits and outputs a single bit. How many different types of nodes are there?

    We are free to choose the inputs to each node from any of the images bits in the system, and we are free to choose the output of the computation from any of the images nodes. We can do this because a single bit can be input to any number of nodes. For each node in the circuit, how many possible organizations are there? Hence, estimate the number of Boolean circuits of size images with images input bits. This is denoted by images .

    Estimate the number of functions computable with at most images gates. Hint: Use Stirling's approximation. Compare this to the number of possible circuits.

  4. 19.4 Let images be an orthonormal basis for images . Write out the tensor product basis for images .

    Let images be the operator that exchanges subsystem 1 with subsystem 2. We say that images is symmetric if images and antisymmetric if images . Identify which elements of the tensor product basis are symmetric, antisymmetric, or none of both.

    Symmetrize the vectors images and images , that is, find superpositions that are either symmetric or antisymmetric. Show that they form, together with images and images a basis of images . Ensure that your result is normalized.

  5. 19.5 Show that if images is self‐adjoint, then images is unitary for any real images .

    If images for any real images , show that

    equation

    Show that for any real images and for any images such that images

    equation
  6. 19.6 Suppose the initial state of two qubits is a separable state images . Let the two qubits be coupled via the interaction Hamiltonian,
    19.79 equation

    where images is a real number known as the coupling constant. This coupling is known as the Heisenberg, or the exchange, interaction. Show that, in matrix form in the computational basis, the Hamiltonian can be written as

    19.80 equation

    that is, images , where images is the state swap operator images for any two vectors images and images . Calculate the evolution due to this Hamiltonian after a time images . Hint: Use the solutions from the previous example.

    Suppose the two qubits stop interacting after images . Show that this implements the square root of swap gate on the two qubits.

  7. 19.7 If two quantum states images and images are within a distance images of each other, what is the maximum possible value of an element of the difference between the corresponding probability vectors of the two states?

Notes

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset