Skip to Content
Programming Quantum Computers
book

Programming Quantum Computers

by Eric R. Johnston, Nic Harrigan, Mercedes Gimeno-Segovia
July 2019
Intermediate to advanced content levelIntermediate to advanced
333 pages
8h 13m
English
O'Reilly Media, Inc.
Content preview from Programming Quantum Computers

Chapter 2. One Qubit

Conventional bits have one binary parameter to play with—we can initialize a bit in either state 0 or state 1. This makes the mathematics of binary logic simple enough, but we could visually represent the possible 0/1 values of a bit by two separate empty/filled circles (see Table 2-1).

Table 2-1. Possible values of a conventional bit—a graphical representation
Possible values of a bit Graphical representation

0

prqc 02in01

1

prqc 02in02

Now on to qubits. In some sense, qubits are very similar to bits: whenever you read the value of a qubit, you’ll always get either 0 or 1. So, after the readout of a qubit, we can always describe it as shown in Table 2-1. But characterizing qubits before readout isn’t so black and white, and requires a more sophisticated description. Before readout, qubits can exist in a superposition of states.

We’ll try to tackle just what superposition means shortly. But to first give you an idea of why it might be powerful, note that there are an infinite number of possible superpositions in which a single qubit can exist prior to being read. Table 2-2 lists just some of the different superpositions we could prepare a qubit to be in. Although we’ll always end up reading out 0 or 1 at the end, if we’re clever it’s the availability of these extra ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Quantum Computing Fundamentals

Quantum Computing Fundamentals

Chuck Easttom
Algorithms, 4th Edition

Algorithms, 4th Edition

Robert Sedgewick, Kevin Wayne

Publisher Resources

ISBN: 9781492039679Errata PageSupplemental Content