दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Foundations of computing

Quantum Computation and Quantum Information

Michael A. Nielsen and Isaac L. Chuang · 2000 · Cambridge University Press

Qubits, gates and algorithms. Computing under the rules of physics.

About the book

Michael Nielsen and Isaac Chuang published Quantum Computation and Quantum Information with Cambridge University Press in 2000. A tenth anniversary edition appeared in 2010. It is the standard textbook in the field and is often called Mike and Ike. The book has three parts. Part one covers fundamental concepts: an introduction, linear algebra and quantum mechanics, and computer science background. Part two covers quantum computation: circuits, the quantum Fourier transform and its applications including Shor's factoring algorithm, search algorithms and physical realisations. Part three covers quantum information: noise, error correction, entropy and information theory.

Key ideas

  • A qubit can be in a superposition of 0 and 1. Measuring it gives one definite result, with probabilities set by the state, and the measurement changes the state.
  • Quantum circuits use gates that act on qubits by unitary transformations. The authors show that a small set of such gates is universal, enough to build any quantum computation.
  • Shor's algorithm uses the quantum Fourier transform to factor large numbers efficiently. A large quantum computer running it would break widely used public-key cryptography such as RSA.
  • Grover's search algorithm finds a marked item among N unsorted items in about the square root of N steps. This is faster than any classical method can achieve.
  • Quantum information is fragile and easily disturbed by noise from the environment. Quantum error-correcting codes can protect it, which makes large-scale, fault-tolerant quantum computation possible in principle.

Why it is on this shelf

It is the reference for quantum computing, which may change cryptography and the simulation of chemistry and materials. It links computing to physics at the deepest level. Reading it gives a sound basis for judging public claims about quantum machines.

How to start reading it

Read Chapter 1 for an overview, then Chapter 2 on linear algebra and quantum mechanics. Then read chapters 4 and 5 on circuits and the Fourier transform. Do exercises.

About this book

Quantum Computation and Quantum Information was published by Cambridge University Press in 2000. Its authors, Michael A. Nielsen and Isaac L. Chuang, were two young researchers who had come into a field that barely existed ten years earlier. A tenth anniversary edition followed in 2010, with a new preface and corrections, but the body of the text stayed essentially the same. Students and researchers call it Mike and Ike, after its authors, and the nickname tells you how ordinary it has become to have a copy on the desk.

The book appeared at a particular moment. In 1994 Peter Shor had shown that a quantum computer could factor large numbers efficiently. In 1996 Lov Grover had shown that it could search an unsorted list faster than any classical machine. Between 1995 and 1997 several groups had shown that quantum information, though fragile, could be protected by error-correcting codes, and that a computation could in principle run for as long as needed if the noise per step was small enough. The first small experiments had begun, using the nuclear spins of molecules in a liquid and single ions held in electromagnetic traps. A great deal of new knowledge was scattered across journal papers, preprints and lecture notes, written in the private dialects of physicists, computer scientists and information theorists.

Nielsen and Chuang set out to collect that knowledge into one place and to write it so that each of those communities could read the others' part. A physicist would need to learn what a complexity class is and why a polynomial-time algorithm matters. A computer scientist would need to learn the postulates of quantum mechanics and the language of Hilbert spaces. An engineer would need to see both, and then see what real devices could do. The book assumes no prior quantum mechanics and no prior computer science beyond what a good undergraduate in either subject would know. It does assume a willingness to do linear algebra steadily for many hundreds of pages.

The central question is simple to state. What changes when the information a computer processes obeys the laws of quantum physics instead of the laws of everyday experience? Two further questions follow. Which problems become easier, and by how much? And can such a machine be built and kept working in a noisy world? The book does not promise that quantum computers will arrive. It sets out what is known, what is proved, what is conjectured, and where the hard engineering lies.

The title has two halves, and both matter. Quantum computation is about algorithms and circuits: how to use quantum systems to compute. Quantum information is about what quantum states can store, transmit and hide: how much can be sent down a channel, how secure a key can be, how much entanglement two parties share. The authors treat these as one subject. That decision shaped the field. A whole generation learned to think of quantum computing, quantum cryptography and quantum communication as parts of a single theory of information under physical law.

The book is long, a little under seven hundred pages in its usual printing, and it is a textbook in the full sense. It has exercises scattered through the text and problems at the end of each chapter, with notes on the history and sources. It can be read in a course, used as a reference, or worked through alone over months. This study edition is a companion for that last kind of reader, and for the reader who wants to know what the book contains and why it has lasted before deciding to take it on.

The authors

Michael Nielsen is an Australian physicist. He studied in Australia and took his doctorate at the University of New Mexico in the late 1990s, working in the quantum information group around Carlton Caves. His thesis work dealt with quantum information theory, including questions about entanglement and how much information quantum operations preserve. He held research positions in the United States and then in Australia, at the University of Queensland, where he led work on quantum information and on the theory of quantum computation.

Nielsen later left academic physics. In the years after 2007 he turned to the question of how science itself is done and shared, and he wrote Reinventing Discovery, published in 2011, about open science and networked collaboration. He then wrote a free online book, Neural Networks and Deep Learning, which became one of the most widely read introductions to that subject. With Andy Matuschak he built Quantum Country, an online introduction to quantum computing that uses spaced repetition, in which readers are prompted to review key facts at widening intervals so that they remember them. That later work grew from a concern visible already in the textbook: how a hard subject can be taught so that a determined reader truly learns it.

Isaac Chuang is an experimental physicist and engineer. He trained at the Massachusetts Institute of Technology and at Stanford University, and worked for some years at IBM's Almaden Research Center in California before returning to MIT as a professor. He is known above all for early experiments in quantum computing using nuclear magnetic resonance, or NMR, the same physics used in medical MRI scanners. In NMR quantum computing, the qubits are the spins of particular atomic nuclei inside a molecule, and radio-frequency pulses act as gates. In 2001, a team including Chuang reported running a version of Shor's algorithm on such a system to factor the number fifteen. Fifteen is trivial to factor, but the experiment showed every stage of the algorithm working on real hardware.

The pairing of authors explains much of the book's character. Nielsen brings the clean statements of theorems, the careful information theory and the patient teaching. Chuang brings the knowledge of how qubits are actually made, controlled and lost. The chapter on physical realisations, and the frequent attention to what a real device would need, reflect an experimenter's eye. The book's balance between proof and practice is the balance of its two authors.

Neither author wrote the book as a retrospective. They were young, working in the field as it formed, and writing for students who would join it. That gives the text energy and directness. It also means that some parts reflect what seemed most promising around 1999, a point we return to when we discuss what has aged.

The shape of the argument

The book is built in three parts, and the order is a teaching decision. The first part lays foundations. It opens with a long overview that tours the whole subject quickly, so that the reader sees where everything is going before any of it is proved. It then teaches the linear algebra and quantum mechanics needed, and then the computer science needed: models of computation, complexity classes and the analysis of algorithms. A reader strong in one area can skim the corresponding material and slow down in the other.

The second part is about quantum computation. It builds the circuit model, the standard way of describing a quantum computer as a sequence of simple operations on a few qubits at a time. It shows that a small set of such operations suffices for any computation. It then develops the two great families of quantum algorithms: those built on the quantum Fourier transform, which include Shor's factoring algorithm, and those built on amplitude amplification, which include Grover's search. It closes with a survey of how quantum computers might be built physically and what goes wrong in each approach.

The third part is about quantum information. It develops the mathematics of noise, giving a general description of what can happen to a quantum system that interacts with an environment it cannot control. It introduces ways to measure how close two quantum states are. It builds the theory of quantum error correction, which is the reason anyone believes large quantum computers are possible. It ends with quantum entropy and quantum information theory, the quantum counterpart of Shannon's theory of communication, including data compression, channel capacity and quantum cryptography.

Several threads run through all three parts. One is the postulates of quantum mechanics, stated early and then used everywhere, so that the reader always knows which physical assumption a result depends on. Another is the circuit picture, which turns every algorithm, code and protocol into a diagram that can be checked line by line. A third is the comparison with classical information and computation: at each stage the authors ask what the classical analogue is and where the quantum version departs from it. A fourth is resources. The book keeps asking how many qubits, how many gates, how much entanglement and how much noise a task requires.

The argument, taken as a whole, has a clear arc. Quantum mechanics permits a new kind of information processing. That kind of processing can solve certain problems far faster than any known classical method. The physical systems that carry it are delicate. But the delicacy is not fatal, because quantum information can be encoded redundantly and corrected, and a theory of quantum information tells us the limits of what can be stored and sent. The book ends not with a single conclusion but with a map of a field and its open problems.

Two appendices deserve mention because they hold pieces the main text relies on. One gives the number theory needed for Shor's algorithm and the RSA cryptosystem. Another proves the Solovay-Kitaev theorem, which says that a small fixed set of gates can approximate any single-qubit operation efficiently. Readers often skip the appendices and then wonder where a step came from.

The qubit and the state space

The first key idea is the qubit itself. A classical bit is in one of two states, 0 or 1. A qubit is a physical system with two distinguishable states, written with a special notation as ket 0 and ket 1, which can also exist in any superposition of them. A superposition is described by two complex numbers called amplitudes, one attached to each basis state. The squared sizes of the amplitudes must add to one. When the qubit is measured in the standard way, the result is 0 or 1, with probabilities given by those squared sizes.

It is tempting to think of a qubit as a bit whose value we simply do not know, like a coin under a cup. That picture is wrong, and much of the book can be read as a long demonstration of why. Amplitudes are not probabilities. They can be negative or complex, and when two paths of a computation lead to the same outcome, their amplitudes add, so they can cancel. This is interference. A coin under a cup cannot cancel itself out. Every quantum algorithm works by arranging for the amplitudes of wrong answers to interfere destructively and those of right answers to interfere constructively.

For a single qubit there is a useful geometric picture called the Bloch sphere. Ignoring an overall phase that has no physical effect, every pure state of one qubit corresponds to a point on the surface of a sphere. The north and south poles are 0 and 1. Points on the equator are equal superpositions that differ in their relative phase. Single-qubit gates are rotations of this sphere. The picture is valuable for intuition, but it does not extend to many qubits, and the authors warn against leaning on it too much.

The real surprise comes with more than one qubit. The state of n qubits is described by two to the power n amplitudes, one for each string of n bits. Ten qubits need 1,024 numbers. Fifty need about a million billion. Three hundred need more numbers than there are atoms in the observable universe. This exponential growth is why simulating quantum systems on classical computers is hard, and it was the observation that led Richard Feynman, in the early 1980s, to suggest that a computer made of quantum parts might simulate nature more naturally.

The exponential state space is also widely misunderstood. It does not mean that a quantum computer stores an exponential amount of usable information or tries all answers at once and reads off the best. A measurement returns just n bits. A result proved later in the book, Holevo's bound, says that n qubits cannot be used to transmit more than n classical bits of information. The exponential space is a stage on which interference can act, not a warehouse from which answers can be taken. Most popular accounts of quantum computing go wrong at exactly this point, and reading the book carefully is a good cure.

The book states the rules governing all this as four postulates. A closed system is described by a unit vector in a complex vector space. It evolves by unitary transformations, which are reversible and preserve lengths. Measurements are described by a set of operators that give the probabilities of outcomes and the states after measurement. And the state space of a composite system is the tensor product of the spaces of its parts. Everything else in the book, from algorithms to codes to cryptography, follows from these four rules together with mathematics.

Measurement, mixed states and the density operator

The second key idea is that measurement is part of the physics, not a neutral act of looking. When a qubit in superposition is measured, the outcome is random and the state changes to match the outcome. The authors present measurement in a general form, then show that the familiar textbook version, called projective measurement, is a special case. They also introduce a general class of measurements described by positive operators, often abbreviated POVMs, which is the right tool when only the outcome probabilities matter.

Measurement has a practical consequence that every quantum algorithm designer lives with. You cannot inspect intermediate results without disturbing them. A classical programmer can print the value of a variable at any time. A quantum programmer who looks too early destroys the interference the algorithm depends on. This is why quantum algorithms often have a particular rhythm: prepare, transform without looking, then measure once at the end and do classical processing on the result.

The book then introduces the density operator, sometimes called the density matrix. A pure state describes a system we know completely. But often we know a system only statistically: it might be in one state with some probability and another state with another. Or it might be one part of a larger entangled system, in which case no pure state describes the part on its own. The density operator handles both situations with one object. It is a matrix that encodes all the measurement statistics that can be obtained from the system.

A useful analogy is the difference between knowing a single card and knowing the composition of a shuffled deck. A pure state is a known card. A mixed state is a deck from which a card will be drawn. But the analogy has a limit. Two different mixtures of pure states can give exactly the same density operator, and then no experiment can tell them apart. In quantum mechanics, the deck is all there is to know; the question of which card was really there may have no answer.

The density operator matters because almost every real system is mixed. Noise turns pure states into mixed ones. Part of an entangled pair, viewed alone, is mixed. The third part of the book, on noise and information, is written almost entirely in density operator language. A reader who skips this material in the early chapters will struggle later.

A related tool is the partial trace, the operation that discards one part of a composite system and gives the density operator of what remains. It is the mathematical form of the statement that a subsystem, considered on its own, may be uncertain even when the whole is perfectly known. That idea is unfamiliar from classical life, where knowing the whole always means knowing every part.

Entanglement, teleportation and no-cloning

The third key idea is entanglement. Two qubits are entangled when their joint state cannot be written as a state of the first combined with a state of the second. The simplest examples are the four Bell states. In one of them, measuring both qubits in the standard basis always gives matching results, 00 or 11, each half the time, even though neither qubit alone has a definite value before measurement. Correlation of this kind could be imitated classically. What cannot be imitated is that the correlations persist in every basis in a way that no local hidden plan can reproduce. That is the content of Bell's theorem, which the book presents through an inequality and a simple argument.

Entanglement is often described as instantaneous communication across space. It is not. Measuring one half of an entangled pair does not let anyone send a message to the holder of the other half, because the local outcomes are random and look the same whatever the distant party does. Entanglement is better thought of as a shared resource, like a pre-arranged code book that can be consumed to perform tasks that would otherwise be impossible or costly.

Quantum teleportation is the clearest example. Suppose two parties share one entangled pair. One of them holds an unknown qubit state. By making a joint measurement on that qubit and her half of the pair, and sending two ordinary classical bits of the result, she enables the other party to reconstruct the exact state on his half by applying a correction. The original is destroyed in the process. Nothing travels faster than light, because the two classical bits must be sent by ordinary means. The book uses teleportation early, in the overview, to show how the postulates combine to give a surprising but entirely lawful result.

A second example is superdense coding, the mirror image of teleportation. With a shared entangled pair, sending one qubit can deliver two classical bits. Taken together, teleportation and superdense coding show that entanglement, qubits and classical bits can be traded against each other at fixed rates. This idea of exchange rates between resources becomes central later in the book's information theory.

The no-cloning theorem, short to prove and far-reaching in effect, says that there is no physical process that takes an arbitrary unknown quantum state and produces two copies of it. Classical information can be copied freely; that is why backups, error correction by repetition and the internet all work. Quantum information cannot. This forbids the obvious approach to error correction, which is to keep several copies and take a majority vote. It also makes quantum key distribution possible, because an eavesdropper cannot copy the signals and measure the copies at leisure.

It is worth pausing over how much follows from a few lines of linear algebra. No-cloning follows from linearity. Teleportation follows from rewriting a three-qubit state in a different basis. Bell's theorem follows from computing four expectation values. The book trains the reader to see these results not as mysteries but as consequences of rules, which is perhaps its most valuable habit.

The circuit model and universality

The fourth key idea is the quantum circuit. A circuit is a diagram in which horizontal lines stand for qubits and boxes on the lines stand for gates, applied in order from left to right. At the end, some lines are measured. This model plays the role for quantum computing that Boolean logic circuits play for classical hardware. It is not the only possible model; there are quantum Turing machines, and later measurement-based and adiabatic models, all equivalent in power. But circuits are concrete, easy to draw and easy to reason about.

The single-qubit gates include the Pauli gates, which flip a qubit or its phase, the Hadamard gate, which turns 0 and 1 into equal superpositions and back, and phase gates that rotate the relative phase. The essential two-qubit gate is the controlled-NOT, which flips a target qubit if and only if a control qubit is 1. On classical inputs it behaves like an ordinary logic gate. On superpositions it creates entanglement. A Hadamard followed by a controlled-NOT turns two plain qubits into a Bell pair, and the reader learns to see that small pattern everywhere.

Every quantum gate must be reversible, because unitary evolution is reversible. This seems to rule out ordinary irreversible logic such as AND, which loses information about its inputs. The book shows that any classical computation can be made reversible by keeping extra working bits, using a reversible gate such as the Toffoli gate. Therefore a quantum computer can do anything a classical computer can, with modest overhead. Leftover working bits must then be cleaned up so that they do not spoil interference, a technique called uncomputation.

The universality result says that single-qubit gates together with the controlled-NOT can build any unitary operation on any number of qubits exactly. A further result says that a small finite set of gates, such as the Hadamard, a particular phase gate and the controlled-NOT, can approximate any operation to any desired accuracy. The Solovay-Kitaev theorem guarantees that the approximation is efficient, requiring only a number of gates that grows slowly as the required accuracy increases. This is why one can speak of a quantum computer having a fixed instruction set, as a classical processor does.

A counting argument in the book gives the other side of universality. Most unitary operations on many qubits require an exponential number of gates to build. Universality does not mean that everything is efficient. It means that everything is possible, and that the interesting question is which operations have short circuits. Finding such operations is what quantum algorithm design is.

The circuit model also gives the cleanest way to state what quantum computers can do. The class of problems solvable efficiently by a quantum computer with bounded error is called BQP. It contains everything a classical computer can solve efficiently and is contained in PSPACE, the class of problems solvable with polynomial memory. Whether BQP is strictly larger than classical polynomial time is not proved. Factoring is in BQP, by Shor's algorithm, but nobody has proved that factoring is hard classically. The book is honest about this. The case for quantum speedup rests on strong evidence, not on a theorem.

The quantum Fourier transform and Shor's algorithm

The fifth key idea is the quantum Fourier transform and the family of algorithms built on it. The ordinary discrete Fourier transform breaks a sequence of numbers into its component frequencies, as a prism splits light into colours. The quantum version does the same thing to the amplitudes of a quantum state. Its power lies in its cost. A classical fast Fourier transform on two to the n numbers takes a number of steps that grows like n times two to the n. The quantum Fourier transform on n qubits, which holds two to the n amplitudes, can be done with a circuit of about n squared gates.

There is a catch, and it is the same catch as before. The output of the quantum Fourier transform is a quantum state, not a list of numbers. You cannot read all the Fourier coefficients. You can only measure and get one sample, with probability determined by the coefficients. The transform is useful only when one sample tells you something valuable, which is the case when the input has a hidden periodic structure. Then the measurement lands with high probability on a value that reveals the period.

The book organises this family around phase estimation. Given a unitary operation and one of its eigenvectors, phase estimation finds the corresponding eigenvalue, which is a phase, to a chosen number of binary digits. It does this by applying the operation repeatedly in a controlled way and then performing an inverse quantum Fourier transform. Order finding, the problem at the heart of factoring, turns out to be phase estimation applied to multiplication modulo a number.

Shor's algorithm then proceeds in two stages. The first is classical number theory. To factor a number N, pick a random number smaller than N and find its order: the smallest power to which it can be raised to give one, modulo N. Number theory shows that knowing the order, with good probability, yields a factor of N through a greatest common divisor calculation. The second stage is the quantum part, which finds the order efficiently. Classically, no efficient method for order finding is known. Quantumly, phase estimation does it in a number of steps that grows roughly as the cube of the number of digits of N.

The consequences are the reason governments and banks care about quantum computing. The RSA cryptosystem, used widely in secure web connections, rests on the difficulty of factoring. Systems based on discrete logarithms, including elliptic-curve cryptography, fall to a closely related quantum algorithm. A large, reliable quantum computer would break these systems. That fact has driven the development of post-quantum cryptography, classical schemes believed to resist quantum attack, which standards bodies have been adopting in recent years.

The book also places Shor's algorithm in a wider pattern. Factoring, discrete logarithms and several related problems are all instances of the hidden subgroup problem for commutative groups, and the quantum Fourier transform solves them all. The non-commutative versions, which would include problems such as graph isomorphism, remain largely open. This framing is one of the book's gifts: it shows the reader that Shor's algorithm is not a trick but an example of a structure.

It is common to confuse the quantum Fourier transform with a general way of speeding up any computation that involves Fourier analysis, such as signal processing. It is not that. It speeds up the transform of amplitudes inside a quantum state, which is useful only in a narrow set of problems with the right hidden structure. Understanding why it is so powerful and yet so narrow is a good test of having understood the book.

Search and amplitude amplification

The sixth key idea is Grover's search algorithm and the technique behind it. Imagine a list of N items, one of which is marked, with no structure to guide the search. Classically you must check about half the items on average, and in the worst case all of them. Grover's algorithm finds the marked item using roughly the square root of N checks. For a million items, that is about a thousand checks instead of up to a million.

The mechanism is geometric, and the book presents it that way. Start in an equal superposition of all items. The state lies almost entirely in the direction of the unmarked items, with a small component along the marked one. Each Grover step consists of two reflections: one flips the sign of the marked item's amplitude, the other reflects all amplitudes about their average. Two reflections make a rotation. Each step rotates the state a small, fixed angle towards the marked item. After about the square root of N steps, the state points almost exactly at the answer, and a measurement finds it.

Two features of this picture are worth remembering. First, the rotation overshoots if you keep going. Running Grover's algorithm too long makes it worse, which is unlike most classical search methods. Second, the technique generalises. Any procedure that finds a good answer with small probability can be boosted, by the same pair of reflections, to find it with high probability in about the square root of the usual number of repetitions. This general method is called amplitude amplification, and it appears inside many later quantum algorithms.

The book also proves that Grover's algorithm is optimal. No quantum algorithm can search an unstructured list using fewer than about the square root of N checks. This result matters as much as the algorithm. It tells us that quantum computers do not solve unstructured search exponentially faster, and therefore do not offer an obvious route to solving NP-complete problems efficiently. The popular claim that quantum computers try every answer at once and so crack every hard problem is refuted by this theorem.

The speedup from Grover's algorithm is quadratic, not exponential. That sounds modest, and in practice it may be eaten up by the overhead of error correction on real machines. But it applies very broadly, to any problem whose solutions can be checked efficiently. Its importance is partly practical and partly conceptual: it marks the boundary of what quantum parallelism can do without structure.

The book also covers quantum counting, which combines Grover's rotation with phase estimation to estimate how many marked items there are, and it discusses the use of search to speed up some classical algorithms for hard problems. These sections show the two families of quantum algorithms meeting.

Noise and quantum operations

The seventh key idea is a general theory of noise. A real qubit is never isolated. It interacts with stray fields, vibrations, nearby atoms and the very control lines used to steer it. These interactions leak information about the qubit into the environment, and from the qubit's point of view the result looks like random error. The general term for this leakage is decoherence.

The book describes all such processes with one mathematical tool, the quantum operation. A quantum operation is any map from density operators to density operators that could arise physically. There are three equivalent ways to describe it. One is to model the system and environment together as a closed system evolving unitarily, then discard the environment. Another is a set of operators, called operation elements or Kraus operators, that act on the system alone. A third is an axiomatic list of properties the map must satisfy. The equivalence of these descriptions is one of the most useful results in the field.

With this tool the authors analyse standard noise models. The bit flip and phase flip channels flip a qubit or its phase with some probability. The depolarising channel replaces the qubit with a completely random state with some probability. Amplitude damping models energy loss, such as an excited atom emitting a photon. Phase damping models the gradual loss of phase information without energy loss. Each has a picture on the Bloch sphere: the sphere shrinks, squashes or shifts towards a pole.

This material is easy to undervalue on a first reading because it is abstract and has no dramatic algorithm attached. It is the core of everything practical. Every claim about whether a device can run a useful computation is ultimately a claim about its quantum operations: how close they are to the intended unitary gates and what kind of errors they introduce. The language of this chapter is the working language of experimental quantum computing.

The book also develops ways to measure distance between quantum states and between operations. The trace distance measures how well two states can be distinguished by the best possible measurement. The fidelity measures their overlap. These quantities let one say precisely how good a gate is or how much a channel degrades a state. They are the quantum versions of statistical distances between probability distributions, and the book connects them carefully.

A common confusion is to think of quantum noise as the same thing as measurement randomness. They are different. The randomness of measurement outcomes is built into the theory even for perfect systems. Noise is an uncontrolled interaction that changes the state before we choose to measure. Both lead to random outcomes, but only noise can be reduced by better engineering or corrected by codes.

Quantum error correction and fault tolerance

The eighth key idea is quantum error correction, and it is the reason the field survived its own early pessimism. In the mid-1990s several respected physicists argued that quantum computers could never work. Errors in quantum systems are continuous, not just flips between two values. Measurement destroys superpositions, so one cannot check for errors by looking. And no-cloning forbids redundant copies. Each objection seemed fatal.

Shor answered all three in 1995 with a code that stores one logical qubit in nine physical qubits. The trick is to spread the information across entangled qubits so that no single qubit holds it, and then to measure only certain joint properties of groups of qubits. These measurements, called syndrome measurements, reveal which error has occurred without revealing anything about the encoded information. Because nothing about the data is learned, the superposition survives. And because a continuous error, once measured in this way, collapses into one of a few discrete possibilities, correcting a small finite set of errors is enough to correct all small errors. This last fact, sometimes called the discretisation of errors, is the deep insight.

The book builds the theory systematically. It starts with the three-qubit bit flip code, which is like classical repetition but with a quantum twist: the code repeats basis states in entangled form, not copies of an unknown state, so no-cloning is not violated. It adds the phase flip code, combines them into Shor's code, and states general conditions for when a code can correct a given set of errors. It then develops the stabiliser formalism, a compact way to describe a large and important family of codes by listing the operators that leave the encoded states unchanged. The Calderbank-Shor-Steane construction, which builds quantum codes from pairs of classical codes, is a highlight, and the seven-qubit Steane code is the worked example.

Error correction alone is not enough, because the circuits that perform correction are themselves noisy. The theory of fault tolerance addresses this. It designs encoded gates, measurements and preparation procedures so that a single fault in any component causes at most one error in each code block, which the code can then correct. Concatenation, the encoding of each physical qubit of a code inside another copy of the code, drives the logical error rate down very fast.

The result is the threshold theorem. If the error rate per physical operation is below a certain constant threshold, and errors meet some reasonable assumptions about independence, then an arbitrarily long quantum computation can be performed reliably with an overhead that grows only polylogarithmically in the size of the computation. In plain terms: below the threshold, better codes beat more noise, and scaling up is an engineering problem rather than a physical impossibility. The book presents the theorem with care and is honest that the numerical value of the threshold depends on details.

It helps to think of fault tolerance as an analogy with classical engineering at a much harsher level. Early electronic computers worked despite unreliable valves because each component failed rarely and failures could be found and replaced. A fault-tolerant quantum computer must find and fix errors continuously, during the computation, millions of times a second, without ever looking at the data. That this is possible at all is remarkable. That it is expensive in qubits is the main reason large quantum computers have taken so long to build.

Quantum entropy and quantum information theory

The ninth key idea is that information itself has a quantum theory. Claude Shannon showed in 1948 that the information produced by a source can be measured by its entropy, which sets the limit on how far its messages can be compressed, and that every noisy channel has a capacity, a rate below which messages can be sent with vanishing error. The last chapters of the book ask what replaces these results when the source emits quantum states and the channel carries qubits.

The quantum measure is the von Neumann entropy of a density operator, introduced by John von Neumann long before quantum computing existed. It is zero for a pure state and largest for a completely random state. The book develops its properties: how it behaves for composite systems, the strange fact that the entropy of a whole can be smaller than the entropy of a part, and strong subadditivity, a deep inequality whose proof the book gives with an appendix. The fact that a whole can be less uncertain than its part is entanglement seen through the lens of information.

Schumacher's compression theorem is the quantum version of Shannon's source coding theorem. A source that emits quantum states can be compressed to a number of qubits per signal equal to its von Neumann entropy, and no further. Holevo's bound, mentioned earlier, limits how much classical information can be extracted from quantum states. The book uses these to begin a theory of quantum channel capacity, a subject that was young in 2000 and has grown greatly since.

The book also treats entanglement as a quantity. It asks how much entanglement a pure state of two systems contains and shows that, for pure states, the answer is the entropy of either part. It introduces entanglement distillation and dilution, the processes of converting many partly entangled pairs into fewer perfect ones and back. Here the exchange-rate idea from teleportation returns in a precise form.

Quantum cryptography closes the book's main text. In quantum key distribution, two parties use quantum signals, typically single photons prepared in one of two incompatible bases, to build a shared secret key. Any eavesdropper who measures the signals disturbs them, by the principles already learned, and the disturbance can be detected by comparing a sample. The BB84 protocol of Charles Bennett and Gilles Brassard, published in 1984, is the standard example. The book sketches why such protocols can be proved secure against any attack allowed by quantum mechanics, a stronger kind of guarantee than classical cryptography usually offers.

It is easy to treat these chapters as an optional extra after the algorithms. That would be a mistake. Quantum information theory gives the reasons behind many algorithmic facts and many physical limits. It also connects quantum computing to some of the deepest open questions in physics, from the thermodynamics of information to the behaviour of black holes, though the book wisely stays with what was established.

Building a quantum computer

The tenth key idea is that a quantum computer is a physical object with demanding requirements. The book gives a set of conditions any implementation must meet: qubits that can be represented robustly, the ability to prepare them in a known starting state, a universal set of gates performed with high accuracy, a way to measure the output, and coherence times long compared with gate times. These are close to the criteria set out by David DiVincenzo around the same time, and they remain the standard checklist.

The authors survey several approaches. Optical systems use photons, which keep their quantum states well but interact with each other only weakly, making two-qubit gates hard. Cavity quantum electrodynamics couples atoms and photons inside mirrored cavities. Ion traps hold charged atoms in electromagnetic fields and use lasers to drive gates, with the ions' shared motion carrying interactions between them. Nuclear magnetic resonance uses nuclear spins in molecules in liquid, controlled by radio-frequency pulses. The book also mentions other proposals, including solid-state systems.

For each approach the book asks the same questions: how qubits are stored, how gates are performed, what limits the coherence, and what stops the system from scaling. The answers teach a lesson that holds for every later technology. The properties that protect a qubit from its environment also tend to make it hard to control. A qubit that talks to nothing is safe and useless. A qubit that talks to everything is useful and lost. Every hardware platform is a particular compromise between these extremes.

NMR receives particular attention, which reflects both Chuang's own work and the fact that NMR was then the platform on which the most complex quantum algorithms had run. The book explains clearly why NMR quantum computing, using an ensemble of molecules at room temperature, faces a severe problem as the number of qubits grows: the useful signal shrinks exponentially. That frank assessment has been borne out. NMR is now chiefly of historical and teaching interest as a quantum computing platform.

The tradition around it

The book answers a line of thought that began in the early 1980s. Paul Benioff showed that a computer could in principle be described by quantum mechanics. Richard Feynman argued that simulating quantum physics would need quantum machines. David Deutsch in 1985 defined a universal quantum computer and proposed a stronger form of the Church-Turing thesis in which any physical process can be simulated by a universal computing device. Deutsch and Richard Jozsa, and then Ethan Bernstein and Umesh Vazirani and Daniel Simon, found problems where quantum machines had provable advantages in restricted settings. Shor's algorithm turned these hints into a result of practical consequence, and Grover's algorithm and error correction followed. Nielsen and Chuang assembled this history into a coherent body of teaching.

Within this bay, the book has close neighbours. The Mathematical Theory of Communication by Shannon and Weaver is the classical foundation for the last third of the book; a reader who knows Shannon's entropy and channel capacity will understand exactly what the quantum versions generalise. The Undecidable, edited by Martin Davis, contains Turing's 1936 paper and the founding work on computability; quantum computers compute exactly the same set of functions as Turing machines, and the difference lies only in efficiency. That distinction becomes sharp after reading Sipser's Introduction to the Theory of Computation and Garey and Johnson's Computers and Intractability, which define the complexity classes against which BQP is measured.

John von Neumann appears twice in the background. His The Computer and the Brain, on this shelf, belongs to his late reflections on computing machines. His earlier work on the mathematical foundations of quantum mechanics gave the field the Hilbert space formalism, the theory of measurement and the entropy that bears his name. George Dyson's Turing's Cathedral tells the story of von Neumann's computer at Princeton, the classical machine whose descendants quantum computers are measured against.

Roger Penrose's The Emperor's New Mind, also on this shelf, takes a very different approach to quantum mechanics and computation. Penrose argues that human understanding is not algorithmic and speculates that its explanation may lie in physics beyond present quantum theory. Nielsen and Chuang make no such claims; their quantum computers are still algorithmic devices. Reading the two side by side clarifies which arguments are about computing and which are about mind. Hofstadter's Gödel, Escher, Bach offers a third angle on the limits and self-reference of formal systems.

Since 2000, the field has grown far past what any one book can hold. Later textbooks cover measurement-based quantum computing, topological codes such as the surface code, quantum complexity theory in depth, and the newer algorithms for linear systems, optimisation and quantum simulation. John Preskill's lecture notes, Mark Wilde's Quantum Information Theory, John Watrous's The Theory of Quantum Information and many others build on foundations that Nielsen and Chuang laid. The textbook remains the common starting point to which they all refer.

Questions and criticisms

The fairest criticism is that the book is of its time on hardware. Its survey of physical realisations reflects the late 1990s. Superconducting circuits, which became the platform used by several of the largest industrial efforts, receive little treatment, and neutral atoms in optical tweezers, now a leading approach, are not covered as such. Ion traps have developed enormously. NMR, prominent in the book, has faded. A reader should treat the hardware chapter as an introduction to the questions every platform must answer rather than a guide to the present.

The error correction material is sound but incomplete by today's standards. Topological codes, especially the surface code with its high threshold and need only for local interactions, became the basis of most practical fault-tolerance plans after the book appeared. Ideas such as magic state distillation, lattice surgery and the detailed resource estimates for running Shor's algorithm at useful sizes all came later. The book's threshold theorem is still the right starting point, but its numbers are not the numbers engineers use.

The algorithms section is narrow by modern standards. It focuses on Fourier-based algorithms and search, which remain central. It does not cover quantum walks in depth, algorithms for linear systems, variational methods for noisy intermediate-scale devices, or the extensive work on quantum simulation that many now see as the most likely early application. Nor does it cover the experiments since 2019 in which quantum devices performed sampling tasks claimed to be beyond classical computers, or the debate over those claims.

Some readers find the book's pace uneven. The overview chapter moves very fast, and then the foundations chapters move slowly. The exercises vary widely in difficulty and are not marked by level. Some important results are left as exercises, which is good teaching for a disciplined reader and frustrating for a casual one. The notation, though standard, can overwhelm a reader new to linear algebra.

What has held up is almost everything at the core. The postulates, the density operator, entanglement, the circuit model, universality, the quantum Fourier transform, Shor's and Grover's algorithms, the theory of quantum operations, stabiliser codes, the threshold idea and the basic entropy results are all taught today as they are taught here. Much of the field's standard notation and vocabulary was fixed by this book. Few textbooks in a fast-moving subject have kept their authority for a quarter of a century.

A deeper question concerns the promise itself. Twenty-five years after the book appeared, a fault-tolerant quantum computer large enough to break RSA has not been built. Some see this as slow but steady engineering progress, with logical qubits now demonstrated in laboratories. Others doubt that large machines will ever be practical. The book does not settle this, and it does not pretend to. Its value is that it lets a reader follow the debate with real understanding.

One more limit deserves notice. The book is written for readers who want the formalism, and it does little to build physical intuition by other routes. It rarely pauses to describe what an experiment looks like in a laboratory, how long a gate takes in practice, or how a qubit is calibrated. Readers who need that grounding should pair it with experimental review articles or with later books written from the hardware side. The omission is a choice, not a flaw, but it shapes what kind of understanding the book gives.

Finally, the book says little about the social and economic side of the subject: who funds quantum computing, why, and what happens to existing secure systems during the long transition to post-quantum cryptography. These questions now occupy policy makers as much as physicists. A reader should look elsewhere for them, while recognising that the technical judgments on which they depend are the ones this book teaches.

Why it is on this shelf

This shelf keeps books that show how thought meets the structure of the world. Nielsen and Chuang belong here because they show computation not as an abstraction floating free of physics but as something physical systems do, under laws that decide what can and cannot be computed efficiently. That idea joins the computing books in this bay to the science books elsewhere on the shelf.

For a reader who comes from Vedanta, the book offers no metaphysics and should not be read for any. But it is a careful lesson in the difference between what is and what can be known by measurement. A quantum state has properties that cannot be read off without changing them. A part of an entangled whole may have no definite state of its own. These are statements of physics, not philosophy, and their value for a philosophical reader is that they discipline loose talk. Many popular claims connecting quantum mechanics and consciousness do not survive contact with the density operator.

For a reader of economics and technology, the book explains what is at stake in a technology that may change cryptography, materials science and chemistry. It gives the means to judge claims made by companies and governments about quantum advantage. For a reader of mathematics, it is a fine example of linear algebra doing real work. We keep it because it is the reference that the rest of the field assumes, and because a patient reader who works through even its first half comes away with a clear and durable understanding.

How to read it

Begin with the long overview chapter, but read it quickly, as a tour. Do not try to master every step. Its purpose is to show you the whole territory: qubits, gates, teleportation, a first algorithm and the main themes of information theory. Mark the places that puzzle you and expect to return.

Then decide where your gaps are. If your linear algebra is weak, the chapter on linear algebra and quantum mechanics is the most important part of the book for you, and it deserves weeks, not days. Work with a pencil through tensor products, eigenvalues, the spectral theorem, Hermitian and unitary operators and the trace. Do many of the exercises. If your computer science is weak, read the chapter on computer science background with care for the sections on complexity classes and reversible computation; skim the rest.

The core of a first reading is the chapter on quantum circuits and the chapter on the quantum Fourier transform. Read them slowly and draw every circuit yourself. Verify, with explicit matrices on two or three qubits, that the circuits do what the text claims. Then read the search chapter, which is shorter and more geometric. At that point you understand quantum computation as most people mean it.

On a first pass, skim the hardware chapter for the general lessons rather than the details, which have dated. Return later to the density operator sections of the foundations chapter, then read the chapter on noise and quantum operations, then error correction. Leave distance measures and the two information theory chapters until you have a reason to need them, unless information theory is your main interest, in which case read Shannon first.

A sustainable pace is a few sections a week, with exercises. A serious reader working alone might spend three to six months on the core chapters. The exercises are the book. Reading without doing them gives a feeling of understanding that disappears at the first real problem. Choose a handful in each section, including at least one that asks you to prove something.

From this shelf, read Shannon and Weaver alongside the information theory chapters. Read Sipser for the complexity background. Read Turing's work in The Undecidable to see what quantum computers do not change. Afterwards, Penrose's The Emperor's New Mind becomes a more interesting argument to test, and Dyson's Turing's Cathedral shows the classical machine that set the standard.

Questions to carry

  • Why does interference, not superposition alone, explain the power of quantum algorithms?
  • What exactly does Holevo's bound forbid, and why does it not contradict the exponential size of the state space?
  • How would you explain to a friend why entanglement cannot be used to send a message?
  • Why does no-cloning not prevent quantum error correction, when it forbids making copies?
  • What makes the hidden periodic structure in factoring visible to the quantum Fourier transform?
  • Why is the quadratic speedup of search provably the best possible, and what does that tell us about NP-complete problems?
  • Which parts of Shor's algorithm are classical, and which are truly quantum?
  • How can measuring an error syndrome avoid disturbing the encoded information?
  • Why does discretising errors make continuous noise correctable?
  • What physical trade-off makes every qubit technology a compromise?
  • In what sense is entanglement a resource that can be measured, spent and converted?
  • If BQP were shown to equal classical polynomial time, what in this book would still matter?
  • Which claims about quantum computers in the news could you now test against the postulates?

Words to know

  • Qubit: a two-level quantum system, the basic unit of quantum information, which can exist in superpositions of its two basis states.
  • Amplitude: a complex number attached to each basis state; its squared size gives the probability of that outcome on measurement.
  • Superposition: a state that is a weighted combination of basis states, with amplitudes that can interfere.
  • Interference: the adding or cancelling of amplitudes from different computational paths that lead to the same outcome.
  • Unitary transformation: a reversible, length-preserving linear operation; the way closed quantum systems evolve.
  • Density operator: a matrix that describes a quantum state, pure or mixed, and gives all its measurement statistics.
  • Partial trace: the operation that discards part of a composite system and yields the state of what remains.
  • Entanglement: a correlation between quantum systems that cannot be described by assigning each its own state.
  • Bell state: one of four maximally entangled states of two qubits, used in teleportation and superdense coding.
  • No-cloning theorem: the result that no physical process can copy an arbitrary unknown quantum state.
  • Controlled-NOT: a two-qubit gate that flips a target qubit when a control qubit is 1; with single-qubit gates it is universal.
  • Universal gate set: a small set of gates from which any quantum operation can be built or approximated.
  • Solovay-Kitaev theorem: the result that a finite universal gate set approximates any single-qubit gate with short sequences.
  • BQP: the class of problems a quantum computer can solve in polynomial time with bounded error probability.
  • Quantum Fourier transform: a quantum circuit that applies the discrete Fourier transform to a state's amplitudes using few gates.
  • Phase estimation: a procedure that finds the eigenvalue phase of a unitary operation for a given eigenvector.
  • Order finding: finding the smallest power of a number that gives one modulo N; the quantum core of Shor's algorithm.
  • Amplitude amplification: the rotation technique behind Grover's algorithm that boosts the probability of good outcomes.
  • Decoherence: the loss of quantum behaviour as a system's information leaks into its environment.
  • Quantum operation: a general physical map on density operators, describing noise and any open-system process.
  • Stabiliser code: a quantum error-correcting code defined by a set of operators that leave the encoded states unchanged.
  • Threshold theorem: the result that below a constant error rate, arbitrarily long quantum computations can be run reliably.
  • Von Neumann entropy: the quantum generalisation of Shannon entropy, measuring the uncertainty of a density operator.
  • Holevo bound: the limit on how much classical information can be extracted from a set of quantum states.
  • Quantum key distribution: a method of creating a shared secret key whose security rests on quantum physics.

A note on this edition

This is a study edition written for the shelf in our own words. It is a companion and commentary, not a substitute for the book. It describes the ideas of Quantum Computation and Quantum Information and offers a way to read it, but it does not reproduce the book's text, exercises or derivations. The book itself is in copyright and is worth getting from a library or bookshop. Any errors of fact or emphasis here are ours, not the authors'.

Terms from this book with their own page: Entanglement, Superposition, Decoherence

More from “Foundations of computing”

The whole section →