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: Program Next-Gen Computers for Hard, Real-World Applications

## by Nihal Mehta, Ph.D.

# Quantum Computing

## Program Next-Gen Computers for Hard, Real-World Applications

### by Nihal Mehta, Ph.D.

# About this Title

###### Pages: 590 (est)

###### Published: 2020-06-10

###### Release: B8.0 (2020-05-19)

###### ISBN: 978-1-68050-720-1

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 qubits, the fundamental elements of quantum computing. Learn what makes them different from classical bits. Model complex problems with logic gates specifically tailored for quantum computing. See how quantum mechanics offers ways to write programs that examine all solutions simultaneously. Create quantum circuits to solve problems that classical computers struggle with. Dive into quantum optimization and cryptography. Use the IBM Q quantum computer to both simulate quantum effects and actually run your programs on a real quantum machine.

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

# Resources

# Contents & Extracts

This book is currently in beta, so the contents and extracts will change as the book is developed.

**Preface**- Is This Book For Me?
- How Will This Book Give Me What I Want?
- Online Resources
- Acknowledgements

- Hello Quantum
- Types of Quantum Computers
- Quantum Computing in 30 Seconds
**Your First Quantum Program**- Bottom Line

- Goodbye Mr. Bits – From Classical to Quantum Bits
- Comparing Classical to Quantum Computing
**Modeling Quantum Bits with the Qubelets Model**- Measuring Qubits
- Bottom Line
- Try Your Hand

- Elementary, My Dear Watson – Quantum Logic
- NOT (X) Gate
- Controlled NOT (CNOT) Gate
- Controlled Controlled NOT (CCNOT) Gate
- Logic Expressions to Quantum Circuit
- Bottom Line
- Try Your Hand

- All Together Now – Quantum Superposition
- Operating on Qubelets
**Putting Qubits in “Blended” States**- Multi-Qubit Superposition – The Mega-Qubit
- Triggering Superposition in Practical Quantum Circuits
- Bottom Line
- Try Your Hand

- Beam Me Up, Scotty – Quantum Tagging and Entangling
- Tagging the Optimal Solution
- Entangling Qubits
- Entanglement in Quantum Computing
- Bottom Line
**Try Your Hand**

- Designer Genes – Custom Quantum States
- Quantum States and Probabilities
- From 2D to 3D Qubelets: Qubits With Complex Quantum States
- Universal Quantum Gates
- Bottom Line

- Small Step for Man – Single Qubit Programs
- Quantum States as Vectors
- Quantum Gates as Matrices
- Intuitively Analyzing the Quantum Gate Matrix
- Single Qubit Quantum Gates and How to Use Them
- Sequence of Gates as Matrix Multiplication
- Bottom Line

- Giant Leap for Mankind – Multi-Qubit Programs
- Alice in Quantumland – Quantum Cryptography and Superdense Coding
- Introduction

- Quantum Search
- Introduction
- Fundamental Pattern for Canceling Qubelets

- Where To Go From Here
- Introduction
- Quantum Computing and Quantum Mechanics

- Mathematical Review
- Classical Logic Gates and Circuits
- Boolean Logic Expressions
- Working with Matrices and Vectors

- 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

# 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.