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
量子计算机编程:从入门到实践
190
|
第
11
章
//
读取并解释结果
sp
.
readVal
=
sp
.
counter
.
read
();
sp
.
hits
=
qss_count_to_hits
[
sp
.
readVal
];
sp
.
color
=
sp
.
hits
/
(
res_aa
*
res_aa
);
return sp
.
color
;
}
本章开头提到过,
QSS
的优势不在于必须执行的绘图操作的次数,而在于我们观察到的噪
声特性的差异。
在这个例子中,当比较相同数量的样本时,量子超采样结果的平均像素误差比蒙特卡罗采
样结果低
33%
。更有趣的是,量子超采样结果的零误差像素(也就是其值与理想值完全一
致的像素)的数量是蒙特卡罗采样结果的两倍。
11.7
量子超采样与蒙特卡罗采样
与传统的蒙特卡罗采样相比,量子超采样着色器从未实际输出单个子像素值。相反,它使
用可能值的叠加值来估算你本来需要通过计算所有值并将它们相加而得到的和。如果你需
要计算每个子像素值,那么传统的计算方法更适合你。如果你需要计算总和,或者需要知
道多组子像素的某些其他特征,那么
QPU
可以为你提供不错的替代方案。
量子超采样与传统超采样的根本区别如下。
传统超采样
随着样本数的增加,结果收敛到精确答案。
量子超采样
随着样本数的增加,得到精确答案的概率也会提高。
既然我们已经了解了量子超采样可以做些什么,下面进一步了解它的工作原理。
量子超采样的工作原理
量子超采样背后的核心思想是使用我们在第
6
章中看到的方法,将
AA
迭代和量子傅里叶
变换(
QFT
)结合,从而估计出被每次
AA
迭代的翻转子例程所翻转的项的个数。 ...
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