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
量子计算机编程:从入门到实践
86
|
第
5
章
a
的值
计算
abs(a)
Z
if
abs(a)==1
反计算
abs(a)
计算
abs(a)
Z
if
abs(a)==1
计算
abs(a)
Z
if
abs(a)==1
反计算
abs(a)
反计算
abs(a)
计算
abs(a)
Z
if
abs(a)==1
反计算
abs(a)
计算
abs(a)
反计算
abs(a)
Z
if
abs(a)==1
反计算
abs(a)
计算
abs(a)
Z
if
abs(a)==1
计算
abs(a)
反计算
abs(a)
Z
if
abs(a)==1
计算
abs(a)
反计算
abs(a)
Z
if
abs(a)==1
计算
abs(a)
反计算
abs(a)
Z
if
abs(a)==1
计算
abs(a)
Z
if
abs(a)==1
临时量子比特
临时量子比特
临时量子比特
临时量子比特
反计算
abs(a)
临时量子比特
图
5-21
:逐步分析使用反计算进行条件相位翻转的程序
5.9
QPU
中的逻辑运算
正如传统的算术运算由数字逻辑门构建一样,
QPU
运算由量子版本的数字逻辑门构建。为
了详细地了解基本
QPU
运算电路的工作原理,我们来看看可编程量子逻辑。本节将重点
介绍一些量子版本的底层数字逻辑门。
基本的量子逻辑
在数字逻辑中,可以利用一些基本的逻辑门来构建其他所有的逻辑门。举例来说,仅用与
非门就可以构建与门、或门、非门和异或门,它们可以组合成你想要的任何逻辑函数。
注意,图
5-22
中的与非门可以有任意数量的输入。对于单个输入(最简单的情况),与非
门就是非门。
量子算术与逻辑
|
87
图
5-22
:不同输入数量的数字与非门 ...
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