Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon.com Sold by: Amazon.com
Used - Very Good
-
To see product details, add this item to your cart.
Ships from: momox Shop Sold by: momox Shop
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Programming Quantum Computers: Essential Algorithms and Code Samples
Purchase options and add-ons
Quantum computers are poised to kick-start a new computing revolution—and you can join in right away. If you’re in software engineering, computer graphics, data science, or just an intrigued computerphile, this book provides a hands-on programmer’s guide to understanding quantum computing. Rather than labor through math and theory, you’ll work directly with examples that demonstrate this technology’s unique capabilities.
Quantum computing specialists Eric Johnston, Nic Harrigan, and Mercedes Gimeno-Segovia show you how to build the skills, tools, and intuition required to write quantum programs at the center of applications. You’ll understand what quantum computers can do and learn how to identify the types of problems they can solve.
This book includes three multichapter sections:
- Programming for a QPU—Explore core concepts for programming quantum processing units, including how to describe and manipulate qubits and how to perform quantum teleportation.
- QPU Primitives—Learn algorithmic primitives and techniques, including amplitude amplification, the Quantum Fourier Transform, and phase estimation.
- QPU Applications—Investigate how QPU primitives are used to build existing applications, including quantum search techniques and Shor’s factoring algorithm.
- ISBN-101492039683
- ISBN-13978-1492039686
- Edition1st
- PublisherO'Reilly Media
- Publication dateAugust 13, 2019
- LanguageEnglish
- Dimensions6.75 x 0.5 x 9.25 inches
- Print length336 pages
Frequently bought together

Customers who viewed this item also viewed
- Quantum Computing for Everyone (Mit Press)PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, Oct 4
- Qiskit Pocket Guide: Quantum Development with QiskitPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, Oct 4Only 6 left in stock (more on the way).
- Quantum Computing: An Applied ApproachHardcoverFREE Shipping by AmazonGet it as soon as Sunday, Oct 4
- Dancing with Qubits: From qubits to algorithms, embark on the quantum computing journey shaping our futurePaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, Oct 4
- Introduction to Classical and Quantum ComputingPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, Oct 4
- Learn Quantum Computing with Python and IBM Quantum: Write your own practical quantum programs with PythonPaperbackFREE Shipping by AmazonGet it as soon as Sunday, Oct 4
Customers also bought or read
- Quantum Computation and Quantum Information: 10th Anniversary Edition
Hardcover$64.96$64.96FREE delivery Sun, Oct 4 - Essential Mathematics for Quantum Computing: A beginner's guide to just the math you need without needless complexities
Paperback$18.45$18.45Delivery Sun, Oct 4 - Dancing with Qubits: From qubits to algorithms, embark on the quantum computing journey shaping our future
Paperback$26.51$26.51Delivery Sun, Oct 4 - Learn Quantum Computing with Python and IBM Quantum: Write your own practical quantum programs with Python
Paperback$44.99$44.99FREE delivery Sun, Oct 4 - Mathematical Foundations of Quantum Computing: A Scaffolding Approach (The Scaffolding Series)
Paperback$48.65$48.65FREE delivery Sun, Oct 4 - Building Quantum Software in Python: A developer's guide
Paperback$59.99$59.99FREE delivery Sun, Oct 4 - Quantum Supremacy: How the Quantum Computer Revolution Will Change Everything
Paperback$11.19$11.19Delivery Sun, Oct 4 - Deep Learning (Adaptive Computation and Machine Learning series)
Hardcover$51.51$51.51FREE delivery Sun, Oct 4 - Quantum Mechanics: The Theoretical Minimum#1 Best SellerLinear Algebra
Paperback$11.48$11.48Delivery Sun, Oct 4 - Hands-On Large Language Models: Language Understanding and Generation
Paperback$37.68$37.68FREE delivery Sun, Oct 4 - AI Engineering: Building Applications with Foundation Models#1 Best SellerEnterprise Applications
Paperback$52.40$52.40FREE delivery Sun, Oct 4 - The Feynman Lectures on Physics, boxed set: The New Millennium Edition
Hardcover$107.49$107.49FREE delivery Fri, Oct 9 - Quantum Computing Architecture and Hardware for Engineers: Step by Step
Hardcover$59.99$59.99FREE delivery Sun, Oct 4 - Prompt Engineering for Generative AI: Future-Proof Inputs for Reliable AI Outputs
Paperback$50.00$50.00FREE delivery Sun, Oct 4 - Quantum Computing Algorithms: Discover how a little math goes a long way
Paperback$54.99$54.99FREE delivery Sun, Oct 4 - Building AI Agents with LLMs, RAG, and Knowledge Graphs: A practical guide to autonomous and modern AI agents
Paperback$41.99$41.99FREE delivery Sun, Oct 4 - Introduction to Quantum Computing: From a Layperson to a Programmer in 30 Steps
Hardcover$49.03$49.03FREE delivery Sun, Oct 4 - AI and Machine Learning for Coders: A Programmer's Guide to Artificial Intelligence
Paperback$33.98$33.98Delivery Sun, Oct 4 - Learn Quantum Computing with Python and Q#: A hands-on approach
Paperback$37.96$37.96FREE delivery Sun, Oct 4
From the brand
-
Your partner in learning
-
Bestsellers
-
Software Development
-
Programming Languages
-
AI / Machine Learning
-
Data Science
-
Data, Databases and more
-
Cloud Services
-
Business
-
Finance
-
Blockchain / Cryptocurrency
-
Security
-
Lean series
-
Cookbooks
-
Head First series
-
97 Things series
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
From the Preface
How This Book Is Structured
A tried-and-tested approach for getting hands-on with new programming paradigms is to learn a set of conceptual primitives. For example, anyone learning Graphics Processing Unit (GPU) programming should first focus on mastering the concept of parallelism, rather than on syntax or hardware specifics.
The heart of this book focuses on building an intuition for a set of quantum primitives—ideas forming a toolbox of building blocks for problem-solving with a QPU. To prepare you for these primitives, we first introduce the basic concepts of qubits (the rules of the game, if you like). Then, after outlining a set of Quantum Processing Unit (QPU) primitives, we show how they can be used as building blocks within useful QPU applications.
Consequently, this book is divided into three parts. The reader is encouraged to become familiar with Part I and gain some hands-on experience before proceeding to the more advanced parts:
Part I: Programming a QPU
Here we introduce the core concepts required to program a QPU, such as qubits, essential instructions, utilizing superposition, and even quantum teleportation. Examples are provided, which can be easily run using simulators or a physical QPU.
Part II: QPU Primitives
The second part of the book provides detail on some essential algorithms and techniques at a higher level. These include amplitude amplification, the Quantum Fourier Transform, and phase estimation. These can be considered “library functions” that programmers call to build applications. Understanding how they work is essential to becoming a skilled QPU programmer. An active community of researchers is working on developing new QPU primitives, so expect this library to grow in the future.
Part III: QPU Applications
The world of QPU applications—which combine the primitives from Part II to perform useful real-world tasks—is evolving as rapidly as QPUs themselves. Here we introduce examples of existing applications.
By the end of the book we hope to provide the reader with an understanding of what quantum applications can do, what makes them powerful, and how to identify the kinds of problems that they can solve.
Editorial Reviews
About the Author
Eric Johnston ("EJ") is the creator of the QCEngine quantum computation simulator, and also an acrobat and competitive gymnast. As an engineer, EJ values surprise and whimsy above all other things. He studied Electrical Engineering and Computer Science at U. C. Berkeley, and worked as a researcher in Quantum Engineering at the University of Bristol Centre for Quantum Photonics. EJ worked at Lucasfilm for two decades as a software engineer for video games and movie effects, along with occasional motion-capture stunt performance.
Product details
- Publisher : O'Reilly Media
- Publication date : August 13, 2019
- Edition : 1st
- Language : English
- Print length : 336 pages
- ISBN-10 : 1492039683
- ISBN-13 : 978-1492039686
- Item Weight : 2.31 pounds
- Dimensions : 6.75 x 0.5 x 9.25 inches
- Best Sellers Rank: #511,091 in Books (See Top 100 in Books)
- #79 in Computer Hardware Design & Architecture
- #3,292 in Computer Science (Books)
- Customer Reviews:
About the author

Eric Johnston ("EJ") is the creator of the QCEngine quantum computation simulator, and also an acrobat and competitive gymnast. As an engineer, EJ values surprise and whimsy above all other things. He studied Electrical Engineering and Computer Science at U. C. Berkeley, and worked as a researcher in Quantum Engineering at the University of Bristol Centre for Quantum Photonics. EJ worked at Lucasfilm for two decades as a software engineer for video games and movie effects, along with occasional motion-capture stunt performance.
























