Skip to Content
Programming Quantum Computers
book

Programming Quantum Computers

by Eric R. Johnston, Nic Harrigan, Mercedes Gimeno-Segovia
July 2019
Intermediate 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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Quantum Computing Fundamentals

Quantum Computing Fundamentals

Chuck Easttom

Publisher Resources

ISBN: 9781492039679Errata Page