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")
2026年1月25日日曜日
ビジュアル観察:機械学習カーネル法と代数多様体の特異点解消
2026年1月14日水曜日
How precise is Quantum Teleportation?
Quantum Teleportation Demo Using Dynamic Circuits
(末尾に日本語版があります)
In the past, performing a quantum teleportation demo—transferring a quantum state from Alice to Bob on real hardware—required the process to be split. Alice would measure her qubits, the job would terminate, and Bob would then have to initiate a new quantum circuit based on those measurement results.
However, with the recent introduction of Qiskit’s Dynamic Circuit capabilities, this entire process can now be completed in a single job submission. This functionality makes it significantly easier to verify the transfer in real-time. Our experiments on the IBM Quantum Heron r2 hardware demonstrated that teleportation can be executed with remarkably high precision.
🟢 Teleportation via Dynamic Circuits
Figure 1 illustrates quantum teleportation utilizing dynamic circuits. Suppose Alice wants to transfer a quantum state created by applying an Ry(pi/3) gate to qubit q0. Note how the dynamic circuit uses Alice's measurement results to conditionally apply X and Z gates to Bob’s qubit via "if" statements.
At first glance, it might appear that Bob is not performing any measurements. If Bob were to perform an explicit measurement, we could determine the probability of the state being |0>, but the state would collapse, preventing further detailed analysis. To solve this, we utilize Qiskit’s StateTomography tool. Although not explicitly shown in the high-level circuit diagram, it performs internal measurements to reconstruct the density matrix, allowing us to calculate the exact fidelity of the transfer.
🟢 Verifying Transfer Fidelity via Density Matrices
The results of our fidelity analysis are shown in Figure 2. We conducted these experiments using ibm_torino (Heron r1) and ibm_marrakesh (Heron r2), both available under the IBM Quantum Open Plan.
Notably, on ibm_marrakesh, we achieved a fidelity of 0.97 between the state sent by Alice and the state received by Bob. This represents an extremely high level of agreement—one could say the teleportation was nearly perfect!
2025年12月31日水曜日
コマドリは渡りに「量子もつれ」を使っているらしい(簡略版)
本日は大晦日です。今年最後の記事は、前回のこちらの記事の縮小バージョンとしました。
ある説によれば(科学的に十分な解明はなされていないが)、「こまどり」は、ある条件下で、「量子もつれ」という状態の量子(ここでは電子)のペアをたくさん作ります。2種類あります。一つは[1]singletと呼ばれる、スピンの向きが逆のペアであり、もう一つはスピンの向きが揃った状態の[2]tripletです。この2種の状態は、相互に行ったり来たり遷移します。
2025年12月27日土曜日
Robins May Use “Quantum Entanglement” for Migration
Summary:
The European robin, a migratory bird, is said to sense the direction of Earth’s magnetic field by using quantum entanglement, helping it navigate toward its destination. Although the mechanism has not yet been fully explained scientifically, I used this idea as a simple example for quantum computing and explored the question, “Why is quantum entanglement necessary?”
🟢Robins may sense Earth’s magnetism using quantum entanglement
A short article in the Japanese science magazine Newton (May 2022) suggested that migratory birds might make use of quantum effects. According to the article, when a robin’s eye receives blue light, a protein in the retina called cryptochrome produces many pairs of electrons in a quantum-entangled state. These pairs come in two types:
[1] singlet, where the spins point in opposite directions, and
[2] triplet, where the spins are aligned.
It is said that by comparing the proportions of these two states, the bird can sense the angle of Earth’s magnetic field.
Here, we assume that the bird is trying to fly roughly in the direction of the Earth's magnetic field. As illustrated below, if all pairs are in the singlet state, the bird perceives itself as facing parallel to the magnetic field and flies in that direction. If singlet and triplet appear in equal amounts, it perceives itself as perpendicular to the field and will look for another direction.
🟢Checking the idea with my own quantum-circuit simulator
The article itself was only a brief overview. Rather than stopping there, I decided to reproduce the situation using my own quantum-circuit simulator. Since the robin is thought to judge direction from the proportion of singlet states, I modeled this behavior for quantum computing and ran simulations.
To summarize the results: when the singlet proportion was 0.5, the corresponding angle was 90°, so the bird could not proceed. After “trying again,” the bird found a case where the singlet proportion became 0.93. The corresponding angle was 30°, which seems suitable for flight — so the bird could continue in that direction.
This is exactly a practical use of quantum computing. As an exercise for beginners, it is a very good learning problem.
In the circuit I created, two qubits are first flipped with X gates, then passed through a Bell circuit to generate a singlet. After that, I simply apply a rotation gate RY(θ) to the first qubit. By changing θ, the proportion of singlet states increases or decreases, representing different angles between the bird and Earth’s magnetic field.
🟢Testing on IBM’s real quantum computer
Up to this point, everything was done in my simulator. However, when I ran the same circuit on IBM’s real quantum hardware, I obtained nearly the same results, as shown below.
🟢Why is quantum entanglement necessary?
The discussion so far is already complete in one sense — but why do we need quantum entanglement at all? In fact, if we remove the Bell circuit from the circuit above, it still seems possible to change the proportion of singlet and triplet states. That is a very good question, and my answer is as follows.
However, because entangled states are more fragile than tensor-product (separable) states, it may not necessarily turn out exactly as described below.
In short, I believe entanglement is required in order to follow “the rules of the quantum world.” Although I did not explain it earlier, in the first diagram I wrote the words “cancellation” near the singlet and “amplification” near the triplet. These words actually matter.
First, it would be extremely difficult, considering environmental disturbances, to prepare many pairs of electrons whose spins are perfectly anti-aligned from the beginning. On the other hand, if the electron pairs are entangled, it becomes possible to maintain a stable situation in which “the total spin is zero.” This is what I meant by “cancellation.”
Next, Earth’s magnetic field is very weak. When electron pairs are in an entangled state, it becomes easier for them to transition between singlet and triplet with only a very small amount of energy. For example, when moving to the triplet state, the electrons do not respond to the magnetic field one by one. Instead, they respond as an entangled pair, so their sensitivity can be amplified. That is the meaning of the term “amplification” in the triplet diagram.
In summary, if we were only changing the proportions of singlet and triplet states in a purely logical or statistical sense, quantum entanglement would not seem necessary. However, when we take into account the actual “behavior of quantum systems inside living organisms,” the story changes. What happens inside the eye of the European robin is not just a simple chemical reaction, but rather a highly refined form of “quantum computing” shaped by nature over tens of millions of years.
2025年12月25日木曜日
コマドリは渡りに「量子もつれ」を使っているらしい
【要旨】渡り鳥の一種、ヨーロッパコマドリは、量子もつれを利用して地磁気の向きを感知し、目的地を目指すと言われる。まだ、科学的に解明はされていないようだが、これを簡単な量子コンピューティングの例題とした。また、"なぜ量子もつれが必要なのか?"も考察した。
→簡略バージョンはこちら
→English version is here
→Linkedinにも投稿しました。(いくつかのQ&Aを含む)
🟢コマドリは「量子もつれ」を使って地磁気を感知する
日本の科学雑誌Newton(2022-05)に、渡り鳥は量子を利用している可能性があるとの短い記事(実質1ページのみ)がありました。それによれば、「こまどり」は、青い光を受けると、網膜のタンパク質(クリプトクロム)に、「量子もつれ」状態の多数の電子のペアを作ります。そのペアには、スピンの向きが逆向きの[1]シングレットと、スピンの向きが揃っている[2]トリプレットの2種類があります。これら2つの存在割合から、地磁気に対する角度を感知できるとのことです。
ここでは、この鳥は、ほぼ地磁気の向きに飛ぼうとしていると仮定します。下図の通り、もしも、全てが[1]シングレットであるならば、自分の向きと地磁気の向きが並行と感知するので、その方向へ飛ぶことになるでしょう。また、[1]シングレットと[2]トリプレットが同数ならば、地磁気に対して垂直だと感知するので、頭を振って別の方向を探すでしょう。
🟢自作の量子回路シミュレータで確認する
上記の記事は短い概説でした。でも、ここでお話しだけに終わらせずに、自作の量子回路シミュレータを使って、この状況を再現することにしました。つまり、コマドリは、[1]シングレットが占める割合で地磁気の方向を判断するのですから、これを量子コンピューティング向けにモデル化し、シュミレーションを行いました。
詳細は略しますが、下図の通り、例えば、[1]シングレットの割合が0.5となる場合は、角度90°ですから、これでは進めません。気を取り直して、首を振っていると、[1]シングレットの割合が0.93となる場合がありました。その時の角度は30°ですから、これならいいいだろう。そのまま、その方向へ飛んで行ける。
これはまさに、量子コンピューティングの利用です!学び始めた人向けの練習問題として、とても良いのではないでしょうか!
作成した量子回路では、2つの量子ビットをXゲートで反転させた後、Bell回路を通します。これで、シングレットを生成できます。引き続き、1番目の量子ビットに回転ゲートRY(θ)を与えるだけです。これによって、自分と地磁気との角度θに応じて、シングレットの割合を増減させることができます。
🟢IBMの量子コンピュータ実機でも確認
ここまでは、自作シミュレータでやりましたが、IBMの量子コンピュータ実機でも、下図の通り、ほぼ同様の結果となることが確認できました。
ここまでで一応閉じていますが、なぜ量子もつれを使うのか? 実際、上の回路でBell回路を取り除いても、シングレットとトリプレットの割合は変更できるように思われます。Good questionです!私の回答を以下に書きます。
2025年12月20日土曜日
フェルミ研究所の物理学者らが書いた量子コンピューティング入門書
量子コンピューティングに関する入門書はかなり多くなってきた。日本語の本は少ないが、洋書はそうなっている。最近、下図の書籍を購入した。K-12(高校生)向けとされているが、大学生にも十分読み応えがあり、しっかりと基礎を築ける書籍である。もちろん、情報系などの大学教員にも間違いなく有用と感じたので、簡単に紹介したい。(他にも良書はあるので、これが最適というつもりはないが、稀有の書であろう。)
C. Hughes, J. Isaacson, A. Perry, R.F. Sun, J. Turner,
Quantum Computing for the Quantum Curious, Springer, 2021.
🟢ハードカバーのカラー版はAdmazonなどで購入できる。(¥7,300)
🟢無料の完全なpdf版も提供されている。上図左下隅の「Open Access」との表示がそれを意味している!ここからダウンロードできるが、AmazonからKindle版も無償で入手できる。
いくつか特徴を挙げる。
(1)量子力学の観点を重視
著者は、Fermi National Accelerator Laboratory(米国フェルミ国立加速器研究所)の物理学者たちである。それだけに、量子コンピューティングを単なる情報科学の世界とせず、量子力学の観点を丁寧に説いている。しかも、それを高校数学を習得していれば分かる程度の数式で説明している。
(2)量子物理実験をシミュレーションで
例えば、最も基本的な事項であるSuperposition(量子状態重ね合わせ)は、物理的にはどのように作られるのか。それを、Beam Splitterや、有名なStern-Gerlachの実験で見せている。それらの多くは、英国のSt. Andrews大学が提供している量子力学シュミレーションツールで確認できるようにしている。Entanglement(量子もつれ)等についても同様である。
また、深い内容だが楽しく学べそうな、FermilabによるK12向けチュートリアルにも言及している。
量子力学の基本概念を理解した後、基本的な量子アルゴリズムに取り組む。Quantum Cryptography(量子暗号)、Quantum Teleportaton(量子テレポーテーション)、Deutsch-Jozsaアルゴリズム(均衡/定常関数判定)などである。ただし、K12向けなので、より高度な量子位相推定(QPE)や量子フーリエ変換(QFT)などは含まれない。したがって、これらを利用するショアの因数分解なども、この先のレベルの問題として残されている。
このような順で理解を深める。手計算は特に重要である。その後のシミュレーションは上記(2)で述べた環境を利用する。だが、いくつかは、IBM Quantumコンピュータ実機も使う。Pythonなどのプログラミングは不要である。IBM Quantum Composerという、ビジュアルでインタラクティブな実行環境を使うからである。実機で動かすことは、シミュレーションではない、リアルな物理現象を再現することになるので、大いに意味がある。
ブックカバー、全体のデザインも美しい。洋書としては珍しく薄い書籍(全150ページ)である。それがとても良い。ためらわずに手に取り、学ぼうとする人が多いだろう。中身は、上に述べた通り、コンパクトな英語で充実している。各章毎に、理解を確認し深めるための練習問題が多数用意されている。自習できるように、奇数番号の練習問題の略解は掲載されているが、偶数番号の練習問題の解答は載っていない。そのため、講義する教員側は、偶数番号の問題を宿題として出すことができる!
2025年11月10日月曜日
The Evolution of IBM Quantum Hardware
IBM Quantum has taken another big step forward. In addition to the familiar Eagle R3 processor, the company has now made its latest Heron R2 processor available to Open Plan (free-tier) users. I tested the following quantum circuit on Heron R2 (ibm_marrakesh), a circuit where quantum entanglement plays a key role.
IBM Quantumは、これまでのEagle R3プロセッサに加えて、最新機Heron R2を、Open Plan(無償)ユーザに提供を開始した。私は、以下に示した量子回路(量子もつれが重要な役割を果たしている)をHeron R2で実行してみた。
驚くべき結果であった!下図に示す通り、10ヶ月前にEagle R3プロセッサで実行した場合よりも、エラー率が1/3以下に低減した!これにより、この量子回路での正答率は86%%から96%に大幅に向上した。ユーザが、ハードウェアのこのような進歩を実感できたことの意味は非常に大きい。ありがとう、IBM Quantum!
2025年11月3日月曜日
Animation of Quantum Basis Probabilities and Phases in Time Evolution
2025年10月31日金曜日
Quantum Computing and Quantum Mechanics for IT Engineers
IT技術者にとっての量子Computingと量子力学
物理や化学ではなく、ソフトウェア開発やIT技術に生きている人たちも、今後、量子コンピューティングを無視することはできないかも知れない。では、量子力学は必要なのか?Absolutely Yes!でもあり、そうではなく、Little Yes?とも言えるという。
Even for those working in software development or IT—not in physics or chemistry—it may soon be impossible to ignore quantum computing.But does that mean we need to learn quantum mechanics? The answer is both Absolutely Yes! and, in a sense, Maybe just a little yes.
2025年10月22日水曜日
Bell回路の時間発展アニメーション
Time Evolution of the Bell Circuit
🔴概 要
前報(→こちら)では、1量子ビットに対するアダマール変換が、シュレディンガー方程式を利用した時間発展と等価であることを知った。今回は、2量子ビットで量子もつれを生じさせるBell回路を対象として、同様の考察を行った。多くの量子コンピューティングの書籍では、1番目の量子ビットにアダマール変換を施し、次に2つの量子ビットにCNOTを施すと、瞬時に量子もつれ状態になると説明されている。だが、そこへ至るまでの時間発展を観察することは、量子力学を少し深く知ることに繋がり、量子コンピューティングを学ぶ上で有用であろう。
In the previous post, we learned that the Hadamard transformation applied to a single qubit is equivalent to time evolution governed by the Schrödinger equation.In this study, I extended that idea to a two-qubit system — the Bell circuit, which generates quantum entanglement.
In many quantum computing textbooks, it is explained that if we apply a Hadamard gate to the first qubit and then a CNOT gate to the two qubits, the system instantly becomes an entangled Bell state. However, observing how the system evolves in time toward that entangled state provides deeper insight into quantum mechanics itself. Such an approach can be highly valuable for anyone learning quantum computing, as it connects the abstract circuit model with the underlying physical process of quantum evolution.




























