🔴量子コンピューティングに関する疑問
量子コンピューティングをある程度進めて行くと、以下の疑問が湧くであろう。本稿ではこれを検討する。
- 量子コンピューティングの書籍等では、量子力学の基礎を与えるSchrödinger方程式がほとんど表に出てこない。それは何故か?
- 量子アルゴリズムを実装する量子回路において、量子ゲートの適用順序は重要だが、各量子ゲートの実行時間は考慮しなくて良いのか?
I am a professor emeritus of CS at Kanagawa Institute of Technology, Japan. Originally my specialty was parallel and distributed systems. My current interests include machine learning, natural language processing, creating mobile apps with MIT App Inventor, and quantum computing. In the web version of this blog, clicking the icon on the right (a plastic sphere) will take you to the "List of Quantum Computing Articles". - Fujio Yamamoto (for e-mail, add "@ieee.org" after "yamamotof")
🔴量子コンピューティングに関する疑問
量子コンピューティングをある程度進めて行くと、以下の疑問が湧くであろう。本稿ではこれを検討する。
Quantum computing is gaining global attention—not just among physicists, but also among computer scientists, engineers, and even high school students curious about the future of technology. As more people enter the field, one common question arises:
“Do I really need to know quantum mechanics to study quantum computing?”
This is not just a theoretical debate. It matters for educators designing curricula, for students choosing courses, and for professionals wondering whether they can contribute without a physics background. Let me share my own journey and reflections on this important question.
About six months ago, I gave a short talk on my quantum computing work at a small symposium. During the Q&A, one professor asked me exactly this question. At the time, I answered:
“Quantum computing leans more toward information science, so quantum mechanics isn’t absolutely necessary—but sometimes it becomes important.”
That wasn’t entirely wrong. But after thinking it over, I’ve come to a clearer conclusion.
It’s actually more accurate to say: yes, quantum mechanics is essential.
That doesn’t mean computer science students, for example, must take a full course in quantum mechanics before diving in. Most introductory textbooks on quantum computing already begin with the very basics of quantum mechanics—like the behavior of qubits—because without that foundation, you can’t even start the discussion. In that sense, it’s possible to step into quantum computing directly through these resources.
As your study progresses, though—especially when working on applications in physics, chemistry (energy-related problems in particular), or optimization—you’ll need at least an undergraduate-level understanding of quantum mechanics.
In my case, I’ve spent most of my career in information technology, but in recent years I’ve been exploring quantum computing as an “amateur researcher.” Feeling the need to revisit the fundamentals, I found a book that turned out to be ideal:
Leonard Susskind & Art Friedman, Quantum Mechanics: The Theoretical Minimum, Penguin Books, 2014 (364 pages).
(A free PDF version is available online.)
Prof. Leonard Susskind is a world-renowned physicist, and his coauthor Art Friedman is a former student. The book grew out of a ten-lecture series given at Stanford University for Silicon Valley engineers. That origin gives the text both rigor and clarity.
It’s not a breezy read, though. Even though the theory is pared down to the “minimum,” you still need to carefully work through the calculations. It took me about two months to complete a first pass, and I still revisit key sections. But the reward was immense: I rediscovered insights rarely emphasized in standard quantum computing texts, such as:
Observables (physical quantities) are represented by linear operators.
The time derivative of an expectation value is related to another physical quantity.
These concepts may sound abstract, but they capture the very essence of quantum mechanics.
🟢 To keep myself motivated, I decorated the book’s cover with bright designs and added sticky notes for each chapter, giving me a quick visual map of its structure. For me, study works best when it feels both serious and fun.
So, is quantum mechanics necessary for learning quantum computing?
Yes—without question.
You don’t need to master quantum mechanics before you start, since most textbooks will guide you through the basics. But if you aim to go further—to tackle real applications, explore research, or simply gain a deeper understanding—you will eventually need the solid grounding that only quantum mechanics can provide.
Fortunately, resources like Susskind’s The Theoretical Minimum make that journey both possible and rewarding. And with the global surge in interest, now is the perfect time to embrace both the physics and the computing sides of this exciting field.
In the previous article, we introduced a new book on quantum computing. However, many people may want to first learn basic mathematics before reading such books. I would like to briefly introduce the following book as one such book. Generally speaking, the relationship between this book and the previous one is as follows:
This book is a large volume of 539 pages. It provides a very thorough explanation of the basics of mathematics related to quantum computing. Parts 1 and 2 are basic mathematics, mainly linear algebra. However, since Dirac Notation (bra-ket) is already used here, it becomes clear that this is not purely basic mathematics, but is aimed at quantum computing. The authors explain that readers who have already mastered the basics of linear algebra can skip these parts and move on to Part 3. Even for such readers, Part 2 is very useful for reviewing points that they may have forgotten. In other words, this book also serves as an encyclopedia.
In the third and fourth parts, the most important operations in quantum computing are explained in detail, with a focus on "Tensor products". Although it is not very noticeable, it is worth noting that the "Change of Basis" introduced in the second part is explained in more detail in this third part. This will be important in many fields, including quantum key distribution later. You will also see that the "Kronecker Product" is important in simplifying quantum computing. More advanced content such as "Singular Value Decomposition" is also included. Furthermore, one of the outstanding features of this book is that "Probability", another foundation of quantum computing, is dealt with extensively in the fourth part.
At the beginning, there is a "Level Indicator" explanation, which is useful for understanding the level of difficulty of the content. However, it would be even better if it had a marking to indicate which of the minimum necessary knowladge is required to read the second book, "Quantum Computing & Information." This is because this book contains a huge amount of content, and some people want to study efficiently. For example, it may be okay to skip "Discrete Fourier Transform" and "Markov Chains" for the time being.
The number of books on quantum computing has been steadily increasing. Here, I’d like to briefly introduce two books I recently purchased, both of which I found to be excellent.
🔴Peter Y. Lee, Huiwen Ji, Ran Cheng: Quantum Computing and Information, Polaris QCI Pub., 2nd edition, Feb. 2025
First off, I was excited to see the publication date listed as 2025—and the book certainly lives up to that excitement! With 502 pages, its thickness alone hints at the density of its content. The material ranges from beginner to intermediate levels and is presented with numerous illustrations, making it a great choice for those who want to study carefully and in depth.
![]() |
| Published in February 2025, 502 pages total, chapter titles provided by me |
![]() |
| Qiskit quantum app worked perfectly on my local environment |
🔴Jack D. Hidary: Quantum Computing - An Applied Approach, 2nd edition, Springer, Aug. 2021
This second book is also a thick, full-color hardcover with a total of 422 pages, targeting beginners to intermediate learners. The latter 170 pages provide a detailed introduction to the basics under the section titled Mathematical Tools for Quantum Computing, so it may be a good idea to review this part first.
The quantum algorithm section in the first half overlaps somewhat with the content of the aforementioned book by Lee et al., but I was happy to see that it includes QFT (Quantum Fourier Transform) and Shor’s Algorithm, which were not covered in that book. For instance, it walks through the entire process (quantum + classical parts) of factoring the small integer 15 (= 3×5), which greatly enhances reader's understanding of the Shor algorithm. Moreover, the second edition includes new content related to Quantum Machine Learning, which is a big plus.
(Note) Factoring a slightly larger integer like 184573 (= 487×379) is considered difficult in simulations due to memory limitations, and on current quantum computers due to limitations in qubit count and error rates. However, simulation is still possible by replacing "quantum order finding" with "classical order finding."
![]() |
| Published in August 2021, 422 pages total |
By the way, when you open this book, the Schrödinger equation appears right at the beginning—in other words, the wave function and the Hamiltonian. Since most books on quantum computing are computer science–oriented, this equation is rarely mentioned, which is a bit surprising. However, this is actually a very good thing, because both the quantum gate model and the quantum annealing method are said to originate from the time-dependent Schrödinger equation. Though the explanation spans only four pages, it clearly demonstrates, with a few equations, that “to understand the time evolution of a wave function, one must consider the total energy of the system.” Specifically, it derives the case of a harmonic oscillator potential, as shown below.
![]() |
| Schrödinger Equation – Harmonic Oscillator Potential |
Also, please note that the quantum algorithm programs provided in the book are written in Google’s Cirq, not IBM’s Qiskit as mentioned earlier. These programs were created in an older Cirq environment than mine, and I encountered various errors when trying to run them. However, the official Google Cirq site provides examples very similar to those in the book, and I was able to run them perfectly in my Cirq setup! Using those as a reference, you should be able to run the remaining examples in the book as needed.
![]() |
| Examples from Google Cirq |
🔴Note the differences between IBM and Google machines
Lastly, there's something important to keep in mind: the bit order in quantum registers is reversed in IBM Qiskit (Little Endian) and Google Cirq (Big Endian)! This is an easy mistake to make and can cause all sorts of confusion. For example, if the initial state of three qubits is |000⟩, applying X gates to q1 and q2 results in q0q1q2 → 011 in Cirq, but q2q1q0 → 110 in Qiskit. For more details, please refer to my earlier article, Testing My Mobile Quantum Circuit Simulator.
tinyurl------- https://tinyurl.com/eaacxan2 -------
量子コンピューティング関係書籍(特に洋書)の出版が増加している。なかには買ってみて残念な本もあったのだが、今回の以下の2冊はとても優れていると感じたので簡単に紹介したい。
🔴Peter Y. Lee, Huiwen Ji, Ran Cheng: Quantum Computing and Information, Polaris QCI Pub., 2nd edition, Feb. 2025
まず、2025年出版という新しさに期待した。十分それに応えてくれるものだった!全502ページの厚みに内容の濃さが窺えるだろう。初級〜中級程度の内容が、豊富な図版とともに詳述されていて、じっくり学ぶのに適している。
![]() |
| 2025年2月出版、全502ページ、章タイトルを記入してみた |
一方、QFT(量子フーリエ変換)やShor's Algorithm(素因数分解)が含まれていないので、中級以上の読者には少し物足りないかも知れない。実は、この共著者らは別途、さらに高度なアプリケーンを扱う別の書籍の出版を準備中であると、この出版社のWebサイトでアナウンスされているのでそれにも期待したい。
特筆すべきことがある。比較的新しい書籍でも、そこに公開されている例題プログムを実行しようとしても種々のエラーが出て動かいないことが多い。量子計算プラットフォームの更新が頻繁なことがその主な要因である。だが、本書の場合は、Qiskitの最新環境によく追随したコードが提供されおり、全てが、私のローカルQiskit環境で完全に動いた!これはとても重要だ。それなら、中身をもっと詳しく探究しようという意欲が湧くからである。
![]() |
| ローカル環境で完全作動したQiskit量子アプリ |
🔴Jack D. Hidary: Quantum Computing - An Applied Approach, 2nd edition, Springer, Aug. 2021
この書籍も初級〜中級向けの全422ページの厚みのある、カラー版ハードカバーである。後半の約170ページは、Mathematical Tools for Quantum Computingという、初心者向けの基礎事項の詳しい解説になっているので、先にこちらを復習するのも良いだろう。前半の量子アルゴリズム関係は、上記のLee本と重なる部分も多いが、そこには無かったQFT(QUantum Fourier Transform)やShor's Algorithmが含まれていて安心する。たとえば、例題として、小さな整数15(=3x5)の素因数分解の過程(量子部+古典部)を全部追跡するのだから、Shorアルゴリズの理解は大いに深まるだろう。また、第二版になって、Quantum Machine Learning関係が追加されたのも大きい。
(注) 例えば、少し大きな整数184573(=487x379)の素因数分解は、シミュレーションではメモリ量の制約により、また、現状の量子コンピュータ実機では、搭載量子ビット数の制約とエラー発生などにより困難な状況と思われる。ただし、シミュレーションでは、「古典的な位数発見」を代用すれば実行は可能である。
![]() |
| 2021年8月出版、全422ページ |
ところで、この本を開くと、冒頭にSchrödinger equation(シュレディンガー方程式)が出てくる。つまり、波動関数とハミルトニアンだ。通常、量子コンピューティングの本は(コンピュータサイエンス寄りなので)そういうことがなく、ちょっと驚く。だが、これはとても良いことだ。量子ゲート方式も、量子アニーリング方式も、その理論の源流は、ともに、時間依存シュレディンガー方程式にあるとのことだから。4ページだけの簡単な説明だが、「波動関数の時間変化を知るにはシステムの全エネルギーを見る必要がある」ことを少しの数式で示している。具体的には、以下のような調和振動子ポテンシャルの場合を導出して見せている。
![]() |
| シュレディンガー方程式(調和振動子ポテンシャル) |
さて、公開されている量子アルゴリズムのプログラムであるが、これは(上記のようなIBM Qiskitではなく)、GoogleのCirqで書かれていることに注意する。当方の現在のCirq環境とは異なる環境のプログラムであるためか、いろいろなエラーが出て動かすことができなかった。しかし、これには救いがあった。GoogleのCirq公式サイトには、本書の例題にそっくりなものも載っていて、それらは、当方のCirq環境で完全に動いた!それを頼りに、本書の残りの例題も、必要に応じて動かすことができるだろう。
![]() |
| Google Cirqの例題の一部 |
🔴IBMとGoogleのマシンの相違に注意
最後にもう一つ重要なことがある。IBM Qiskit (Little Endian)とGoogle Cirq (Big Endian)では、レジスタでのビットの並び順が逆になっている!これは間違いやすく、色々と影響がある場合が多い。例えば、3量子ビットの初期状態が|000⟩である場合、q1とq2にXゲートを適用して測定した結果は、Cirqでは、q0q1q2→011となり、Qiskitでは、q2q1q0→110となる。これに関しては過去の記事「Testing my mobile quantum circuit simulator」の中でも説明しているので参照願いたい。
Recently, I read an article titled "Using MicroBlocks with MIT App Inventor" [1]. It looked very interesting, so I applied it to the quantum bit simulator I am creating. Specifically, I controlled two sliders to change the state of quantum bit on the Bloch sphere with a single MicroBlocks device. I was able to experience a fun feeling of operation that was different from software sliders!
The outline is summarized in two figures, Fig. 1 and Fig. 2, below. If you would like to know more about this quantum bit simulator, please refer to the document [4].
[1] Using MicroBlocks with MIT App Inventor (by App Inventor Foundation)
https://microblocks.fun/blog/2024-11-08-appinventor-intro/
[2] MicroBlocks BLE Extension (by Peter)
https://community.appinventor.mit.edu/t/microblocks-ble-extension/129412
[3] Tools Extension (by Taifun)
https://puravidaapps.com/tools.php
【要旨】量子コンピューティングEXPO2024春に参加したので、感想などを簡単に述べる。このEXPOは、(1)AI・人工知能、(2)デジタル人材育成支援、(3)量子コンピューティング、(4)ブロックチェーンの4つの同時開催である。このなかでも、最近のAI・IT社会の情勢を反映して、AI・人工知能に圧倒的に多数の出展がみられた。また、デジタル人材育成への関心も非常に高いことを感じた。一方、量子コンピューティングは、出展数はあまり多くはなかったが、出展していた企業の技術者と直接対話したり、最新技術動向に関する講演も聴けたので、参加の意義は大いにあった。
大規模なFTQCはなぜ必要なのか?その答えは、地球規模の環境保全のための施策を支える計算性能にある。具体的には、人工光合成(CO2削減)や人工窒素合成(省エネ)である。人工窒素合成を見てみよう。現在、アンモニアを工業的に作る方法は確立されているが、高温高圧を要するので非常に多くのエネルギーを要する。一方、学校の理科の授業で出てくる、マメ科植物の窒素固定では極く僅かのエネルギーしか必要としない。だが、そのメカニズムの解明には、非常に精密な分子計算が必要であり、現在のスーパーコン用にその精密モデルを作り計算を行うことはかなり困難である。
実際、マメ科植物と共生する根粒菌では、多数の電子のうち約50個の電子がもつれあっているので、2の50乗という膨大な状態の計算が必要となる。そこで、量子コンピュータであれば、そのような量子もつれを自然に利用して極めて高速計算することを期待できる。つまり、精密な分子計算は、無理に古典コンピュータを持ち出すのではなく、量子原理に基づく素直な計算に持ち込めるはずである。(元祖ファインマンが初期に述べていたことが実現されつつある。)
後半は、誤り訂正方法の技術的内容であった。量子ビットが反転してしまうビットフリップと位相が反転する位相フリップの2つがある。例えば、2048ビットの素因数分解のためのShor'sアルゴリズムでは、6,000-qubit、8ギガgateを要する。時間も8時間〜22時間などと見積もられる。この間で誤りが起こらないことが求められるので、とても大変である。誤り訂正中に誤りが起こることもあるので、そのような誤りの増加を抑止することも不可欠である。
--------------------------------
(番外編) I asked ChatGPT-4o the following questions. The answer is omitted, but it was very similar to the content of Prof. Kitagawa's lecture above! I can't help but be surprised again. The momentum of using generative AI is unstoppable!
今年(2024年)、日本に居ながらにして参加できる、量子コンピューティング関係のイベント、コンファレンス、オンラインコース、投稿などを列挙してみた。もちろん、小生が実際に参加するものは少ないのだが、Googleカレンダーには載せてある。条件が揃えば参加したいものも多い。これらはどちらかと言えば情報寄りの観点から収集したが、物理寄りのイベント等は他にも幾つかあるだろう。
(1)第1回 Quantum CAE研究会
URL:https://unit.aist.go.jp/g-quat/ja/events/2024/CAE_20240509-10.html
主催:G-QuAT(産総研:量子・AI融合技術ビジネス開発グローバル研究センター)
日時:2024-05-09, 10
場所:産総研 臨海副都心センター
対象:専門家
(2)量子コンピューティングExpo 2024(春)
URL:https://www.nextech-week.jp/hub/ja-jp/visit/qc.html
主催:RX Japan
日時:2024-05-22, 23, 24
場所:東京ビックサイト
対象:一般、技術者
(3)連続セミナー2024「情報技術の新たな地平:AIと量子が導く社会変革」
URL:https://www.ipsj.or.jp/event/seminar/2024/infomation.html
主催:情報処理学会
日時:量子関係は、2024-06-11, 19のみ。
場所:オンライン(有料)
対象:一般、技術者
(4)Q2B 2024 Tokyo
URL:https://q2b.qcware.com/2024-conferences/tokyo-english/
主催:QC Ware
日時:2024-07-24, 25
場所:東京(有料)
対象:専門家、技術者
(5)「社会を変える量子コンピュータ活用」論⽂募集
URL:https://www.ipsj.or.jp/dp/submit/tdp0602s.html
主催:情報処理学会 デジタルプラクティス
日時:2024-08-05(投稿〆切)
場所:オンライン投稿
対象:専門家、技術者
(6) QUANTUM COMPUTING FUNDAMENTALS
URL: https://learn-xpro.mit.edu/quantum-computing
主催:MIT xPro
日時:2024-10-07 (Start date)
場所:on-line course (price: $2,319)
対象:技術者、専門家
(7) Quantum Innovation 2024
URL:https://quantum-innovation.riken.jp/
主催:Quantum Technology Innovation Hubs
日時:2024-10-21, 22, 23(招待講演のみ)
場所:東京
対象:専門家、技術者
(8)量子コンピューティングExpo 2024(秋)
URL:https://www.jetro.go.jp/j-messe/tradefair/detail/131501
主催:RX Japan
日時:2024-11-20, 21, 22
場所:幕張メッセ
対象:一般、技術者
要旨:量子コンピューティングでは、量子ビットを測定してしまうとそこでお終いになる。つまり、その測定結果に応じて量子回路を変更することはできない、と思っていたが、最近それができるようになっていた。QiskitでIBM Quantumマシンを使う場合のDynamic Circuits機能がそれだ。
●動的回路(Dynamic Circuits)機能
量子回路を実行していて、あるところで測定を実行したとする。その結果(古典ビット0か1)に応じて、その後に必要な量子ゲートを動的に加えて実行を継続することができる機能[1][2][3]である。具体的には、図1(a)のようなif文による制御、(b)のようなswitch(case)文による制御、それ以外に、forループやwhileループも使える。ただし、使用するシミュレータ、および実機マシンによっては、これらのいくつかはサポートされていないようだ。
なお、IBM Quantum Composer(ただし、シミュレータによる実行)でも以下ように同様にできる。だが、古典ビットレジスタCの検査が、図3の場合と異なり、ビット毎ではなく、3ビットの10進数として扱うので、注意が必要である。if文による動的ゲートの設定が4つになっている。
(補足事項1)Quantum Labに置くfile容量に注意(補足事項2)実機使用可能無料枠
実機での実行を繰り返してきたので、使用状況を見てみた。今月は、無料枠ではあと3分強しか使えない。有効に活用しよう。
参考文献
[1] Classical feedforward and control flow
https://docs.quantum.ibm.com/build/classical-feedforward-and-control-flow
[2] Repeat until success
https://learning.quantum.ibm.com/tutorial/repeat-until-success
[3] @kifumi、動的回路で量子テレポーテーションを実行する
Qiita記事、最終更新日 2023年03月20日
[4] 超高密度符号化と量子テレポーテーション(その3)
https://sparse-dense.blogspot.com/2022/12/blog-post_2.html
量子コンピューティングに関する私の記事の一覧です。約 170件あります。