2 Qubits: The building blocks
This chapter covers
- Why random numbers are an important resource
- What is a qubit?
- What basic operations can we perform on a qubit?
- Programming a quantum random number generator in Python
In this chapter, we’ll start to get our feet wet with some quantum programming concepts. The main concept we will explore is the qubit, the quantum analogue of a classical bit. We’ll use qubits as an abstraction or model to describe the new kinds of computing that are possible with quantum physics. Figure 2.1 shows a model of using a quantum computer as well as the simulator setup that we use in this book. Real or simulated qubits will live on the target machine and interact with the quantum programs that we will be writing! ...
Get Learn Quantum Computing with Python and Q# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.