量子計算機即將掀起一場新的計算革命,你也可以即刻加入進來。如果你學的是軟件工程、計算機圖形學、數(shù)據(jù)科學,或者僅僅是一名計算機愛好者,《量子計算機程序設(shè)計:基本算法和代碼示例(影印版 英文版)》都可以成為你理解量子計算技術(shù)的實踐指南。你可以直接使用示例代碼演示該技術(shù)的獨特功能,而不是通過數(shù)學和理論進行探索。
量子計算專家Eric Johnston、Nic Harrigan和Mercedes Gimeno-Segovia會向你展示在應(yīng)用程序中構(gòu)建并編寫量子程序所需的技能、工具和意識。通過《量子計算機程序設(shè)計:基本算法和代碼示例(影印版 英文版)》你將了解量子計算機可以做什么,并學習如何識別它們可以解決的問題類型。
《量子計算機程序設(shè)計:基本算法和代碼示例(影印版 英文版)》包含三部分內(nèi)容:
QPU編程——探索量子處理單元編程的核心概念,包括如何描述和操作量子位以及如何執(zhí)行量子隱形傳態(tài)
QPU原語——學習算法原語和技術(shù),包括幅度放大、量子傅里葉變換和相位估計
QPU應(yīng)用程序——研究如何使用QPU原語構(gòu)建應(yīng)用程序,包括量子搜索技術(shù)和Shor大數(shù)因式分解算法
Preface
1. Introduction
Required Background
What Is a QPU?
A Hands-on Approach
A QCEngine Primer
Native QPU Instructions
Simulator Limitations
Hardware Limitations
QPU Versus GPU: Some Common Characteristics
Part Ⅰ Programming for a QPU
2. One Qubit
A Quick Look at a Physical Qubit
Introducing Circle Notation
Circle Size
Circle Rotation
The First Few QPU Operations
QPU Instruction: NOT
QPU Instruction: HAD
QPU Instruction: READ
QPU Instruction: WRITE
Hands-on: A Perfectly Random Bit
QPU Instruction: PHASE(0)
QPU Instructions: ROTX(0) and ROTY(0)
COPY: The Missing Operation
Combining QPU Operations
QPU Instruction: ROOT-of-NOT
Hands-on: Quantum Spy Hunter
Conclusion
3. Multiple Qubits
Circle Notation for Multi-Qubit Registers
Drawing a Multi-Qubit Register
Single-Qubit Operations in Multi-Qubit Registers
Reading a Qubit in a Multi-Qubit Register
Visualizing Larger Numbers of Qubits
QPU Instruction: CNOT
Hands-on: Using Bell Pairs for Shared Randomness
QPU Instructions: CPHASE and CZ
QPU Trick: Phase Kickback
QPU Instruction: CCNOT (Toffoli)
QPU Instructions: SWAP and CSWAP
The Swap Test
Constructing Any Conditional Operation
Hands-on: Remote-Controlled Randomness
Conclusion
4. Quantum Teleportation
Hands-on: Let's Teleport Something
Program Walkthrou□□<□r>Step 1: Create an Entangled Pair
Step 2: Prepare the Payload
……