Pages: 580 Published: August 2020 ISBN: 9781680507201
In Print
Quantum Computing
Program Next-Gen Computers for Hard, Real-World Applications
by Nihal Mehta, Ph.D.
You’ve heard that quantum computing is going to change the world. Now
you can check it out for yourself. Learn how quantum computing works,
and write programs that run on the IBM Q quantum computer, one of the
world’s first functioning quantum computers. Develop your intuition to
apply quantum concepts for challenging computational tasks. Write
programs to trigger quantum effects and speed up finding the right
solution for your problem. Get your hands on the future of computing
today.
Quantum computing overhauls computer science. Designing life-saving
drugs and solving super-large logistics problems that are difficult or
impossible for classical computers to handle are now within reach.
Instead of iterating through each possible configuration one by one,
quantum computing speeds up the search by giving you the tools to
examine all possibilities simultaneously to find those that work. Now
you can work with real quantum computers instead of just talking about
them theoretically.
Discover a new visual way of looking at quantum bits that makes quantum
computing intuitive for computer programmers. Master the special
properties that make them different, and more powerful, than classical
bits. Control quantum bits with gates and create circuits to model
complex problems. Write programs that run on real quantum machines to
solve problems that classical computers struggle with. Dive into quantum
optimization and cryptography.
Get a head start on the technology that will drive computer science into
the future.
What You Need
Access to the IBM quantum computer, via any internet connection
Working with Blended States: Mega-Qubit as a Tensor
Design a Teleporting Circuit
Bottom Line
Try Your Hand
Alice in Quantumland—Quantum Cryptography
Encrypting with Symmetric Keys
Tell-Your-Boss Version: The “Key” Idea
The BB84 Key Exchange Mechanism
How Real Is BB84?
Bottom Line
Try Your Hand
Quantum Search
Grover’s Algorithm
Fundamental Circuit Pattern for Searching
Searching for an Optimal Schedule
Bottom Line
Try Your Hand
Where to Go from Here
Well-Known Algorithms
Programming with Qiskit
Amazon, Google, and Microsoft’s Quantum Computers
Bottom Line
Try Your Hand
Mathematical Review
Classical Logic Gates and Circuits
Boolean Logic Expressions
Working with Matrices and Vectors
From Qubelets to the Bloch Sphere
Visualizing the Qubit in 3D Space
Writing the Quantum State Using Polar Coordinates
Quantum State in a Transformed Space
Quantum Mechanics with Qubelets
Mach-Zehnder Interferometer
Solutions to Exercises
Quantum Bits Solutions
Quantum Logic Gates Solutions
Quantum Superposition Solutions
Quantum Tagging and Entangling Solutions
Custom Quantum States Solutions
Single Qubit Programs Solutions
Multi-Qubit Programs Solutions
Quantum Cryptography Solutions
Quantum Search Solutions
Where to Go from Here Solutions
Author
Nihal Mehta has a Ph.D. from the University of Pennsylvania and has
published articles in peer-reviewed journals in artificial intelligence,
mathematical optimization and physics. He has championed the use of
advanced optimization techniques and machine learning in decision
support systems for global companies. He has seen first hand the
shortcomings of current technology and fervently believes in quantum
computing’s potential to define the future of computing. His first
program was to play tic-tac-toe on a scientific calculator.