Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
量子计算机编程:从入门到实践
by
Eric R. Johnston
,
Nicholas Harrigan
,
Mercedes Gimeno-Segovia
July 2021
Beginner to intermediate
274 pages
7h 10m
Chinese
Posts & Telecom Press
Content preview from
量子计算机编程:从入门到实践
38
|
第
3
章
4
个量子比特
16
个值
6
个量子比特
64
个值
10
个量子比特
1024
个值
图
3-9
:有时候,突出显示是有用的
在接下来的章节中,我们将利用上述技巧。但是,即使是这些提升视觉效果的技巧,也只
能起到有限的作用。对于含有
32
个量子比特的系统,对应的圆有
4 294 967 296
个,这对
人眼和大部分显示器来说实在是太多了。
可以在
QCEngine
程序的开头添加
qc_options.color_by_phase = true;
,从
而实现如图
3-9
所示的相位着色效果。要将相位线加粗,请添加
qc_options.
book_render = true;
。
3.5
QPU
指令
:
CNOT
是时候介绍多量子比特系统专用的
QPU
指令了,这些指令针对的是一个以
上的量子比特。我们先探讨强大的
CNOT
指令。
CNOT
对两个量子比特进行操
作,我们可以认为它是具有以下条件的
if
结构体:“当且仅当条件量子比
特的值为
1
时,针对目标量子比特应用
NOT
指
令
。”
CNOT
对应的电路符号
通过用一条线连接两个量子比特来体现上述逻辑。实心点表示用于控制的
量子比特,非符号则表示目标量子比特
2
。
注
2
:
也可以根据值
0
进行控制。为了实现这一点,只需在控制寄存器上使用一对非门,一个在操作之前,
一个在操作之后。
多个量子比特
|
39
许多 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
JAVASCRIPT之美|聽頂尖程式設計師闡述他們的思維
Anton Kovalyov
Go程序设计语言
艾伦A. A.多诺万, 布莱恩W. 柯尼汉
C++语言导学(原书第2版)
本贾尼 斯特劳斯特鲁普
监控运维实践:原则与策略
Mike Julian
Publisher Resources
ISBN: 9787115566355