Skip to Content
動かして学ぶ量子コンピュータプログラミング ―シミュレータとサンプルコードで理解する基本アルゴリズム
book

動かして学ぶ量子コンピュータプログラミング ―シミュレータとサンプルコードで理解する基本アルゴリズム

by Eric R. Johnston, Nic Harrigan, Mercedes Gimeno-Segovia, 北野 章, 丸山 耕司
August 2020
Beginner to intermediate
332 pages
8h 16m
Japanese
O'Reilly Japan, Inc.
Content preview from 動かして学ぶ量子コンピュータプログラミング ―シミュレータとサンプルコードで理解する基本アルゴリズム
168
9
章 データの量子表現
9.1
 非整数データ
QPU
レジスタで非整数の数値データをエンコードするにはどうすればよいでしょうか?非整数値を
バイナリで表す一般的な方法は、固定小数点浮動小数点
2
つです。浮動小数点表現はより柔軟で
すが(特定のビット数で表現する必要がある値の範囲を変更できる)、キュビットを使うことと単純さを
優先すると、固定小数点表現のほうが出発点としては好都合です。
固定小数点表記ではレジスタが
2
つのセクションに分割されます。
1
つは数値の整数部分をエンコー
ドするもの、もう
1
つは小数部をエンコードするものです。整数部分は標準のバイナリエンコーディン
グで表現されます。つまり、より大きな重みを持つキュビットが
2
の累乗の大きな値を表します。レジ
スタの小数部分では、重みが減少するキュビットが
1
2
の累乗の大きな値を表します。
固定小数点数は、多くの場合、Q表記を使って記述します(悲しいことに、
Q
子(
quantum
)の
Q
)。
Q
表記によって、レジスタ内の端数ビットの終了位置と、整数ビットの開始位置
の曖昧さが解消されます。表記
Qn.m
は、
n
ビットレジスタのうち
m
ビットを小数を表すのに使います。
同じ表記法を使用して、固定小数点エンコーディングに
QPU
レジスタをどのように使用するかを指定
できます。例えば、 9-1は、
Q8.6
の固定小数点で
3.640625
の値をエンコードする
8
キュビット
QPU
レジスタを示しています。
ット
1
ット ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Rustの練習帳 ―コマンドラインツールの作成を通してRustを学ぶ

Rustの練習帳 ―コマンドラインツールの作成を通してRustを学ぶ

Ken Youens-Clark, 中山 光樹
Unityによるモバイルゲーム開発 ―作りながら学ぶ2D/3Dゲームプログラミング入門

Unityによるモバイルゲーム開発 ―作りながら学ぶ2D/3Dゲームプログラミング入門

Jon Manning, Paris Buttfield-Addison, 鈴木 久貴, あんどうやすし, 江川 崇, 安藤 幸央, 高橋 憲一
scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

scikit-learn、Keras、TensorFlowによる実践機械学習 第2版

Aurélien Géron, 下田 倫大, 長尾 高弘
ユーザーストーリーマッピング

ユーザーストーリーマッピング

Jeff Patton, 川口 恭伸, 長尾 高弘

Publisher Resources

ISBN: 9784873119199Other