🔴 自作モバイル量子回路シミュレータによる確認
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")
2024年9月12日木曜日
量子もつれ(entanglement)を体感できそうなゲーム
🔴 自作モバイル量子回路シミュレータによる確認
2024年9月1日日曜日
Mobile quantum circuit simulator V2 is complete!🎉
So far, I have created many quantum apps and several quantum circuit simulators. Recently, I have completed the mobile quantum circuit simulator V2 for n-Qubit! I would like to provide an overview of it again. Please refer to here and here for details.
🔴Check out the introductory video for this simulator here!
🔴 Features of the n-Qubit mobile quantum circuit simulator
- It runs on a mobile phone alone. No external simulators are used, so no internet is required.
- There is no limit to the number of quantum bits n used. (However, in reality, it is naturally limited by the mobile phone's resources.)
- Quantum gate descriptions are given in text, but I have put a lot of effort into making the output format easy to understand.
- When describing quantum circuits, you can refer to eight built-in quantum circuit examples with hand-drawn circuit diagrams.
- It is believed that about 80 to 90 percent of the examples shown in related books at the beginner to intermediate level can be run with this simulator.
🔴 Ten built-in quantum circuit examples
The ten examples above show what kind of quantum circuits can be simulated, so please use them as a reference when configuring your own quantum circuits.
- [Bell] Bell circuit that gives 2-qubit quantum entanglement
- [GHZ] GHZ circuit that gives 3-qubit quantum entanglement
- [QFT] Phase waves are generated by 3-qubit QFT (quantum Fourier transform).
- [Modulo] Calculation of "7k mod 15" using 4-qubit. Uses a swap gate.
- [Crover] Grover's search algorithm using 2-qubit. Consists of phase inversion of the target basis and amplification of its probability amplitude.
- [Bit-flip1] Bit-flip errors using 5-qubit (3-qubit for input, 2-qubit for control) are determined by measuring the control 2-qubit, and a new error correction gate is added and executed depending on the measurement result.
- [Bit-flip2] Same settings as Bit-flip1, but Bit-flip errors are automatically corrected without measuring the quantum bits along the way.
- [Phase Est] Quantum phase estimation using 6-qubit (1-qubit for problem setting, 5-qubit for answer). Quantum phase kickback in the first stage, IQFT (inverse quantum Fourier transform) in the second stage. A unique notation is used to reduce the amount of circuit description required in the first stage.
- [Stern-Gerlach] Using 1-qubit, we mimic the famous Stern-Gerlach experiment in quantum computing.
- [Mermin-Peres Magic] Magic using entangled 4 qubits (pseudo-telepathy). Alice sets the value in the third row and Bob sets the value in the third column.
モバイル量子回路シミュレータV2の完成!🎉
これまでに多数の量子アプリと、幾つかの量子回路シミュレータを自作してきたが、このほど、n-Qubit用モバイル量子回路シミュレータV2が完成した!改めて、その概要を示したい。詳細はこちら(英文)とこちら(英文)を参照願いたい。
🔴Check out the introductory video for this simulator here!
🔴 n-Qubitモバイル量子回路シミュレータの特徴
- スマホ単体で動く。外部のシミュレータ等は使わないので、インターネットは不要。
- 利用する量子ビット数nに制限はない。(ただし、実際には、当然スマホのリソースの制約を受ける。)
- 量子ゲートの記述はテキストで与えるが、分かりやすい出力形式などに工夫を凝らした。
- 量子回路記述にあたっては、手書き回路図面付きの10件の組み込み量子回路例を参考にしていただける。
- 初級〜中級レベルの関連書籍等で示されている例題の恐らく8〜9割程度は、本シミュレータで動かせると思われる。
🔴 組み込まれている10件の量子回路例題
具体的にどのような量子回路のシミュレーションが可能なのかを、上記に述べた10件の例題で示すので、ご自分の量子回路を構成する際の参考にしていただきたい。
- [Bell] 2-qubitの量子もつれを与えるBell回路
- [GHZ] 3-qubitの量子もつれを与えるGHZ回路
- [QFT] 3-qubitのQFT(量子フーリエ変換)によって、位相の波を起こす。
- [Modulo] 4-qubitを使った「7k mod 15」の計算。Swapゲートを利用。
- [Crover] 2-qubitを使ったGroverの探索アルゴリズム。対象の基底の位相反転とその確率振幅の増幅から成る。
- [Bit-flip1] 5-qubit(入力用3-qubit、制御用2-qubit)を使ったBit-flipエラーを、制御用2-qubitの測定で判定し、その測定結果に応じて、エラー訂正用ゲートを新たに加えて実行する。
- [Bit-flip2] Bit-flip1と同じ設定だが、途中で量子ビットを測定せずに、自動的にBit-flipエラーを訂正する。
- [Phase Est] 6-qubit(問題設定用1-qubit、回答用5-qubit)を使った量子位相推定。前段で量子位相キックバック、後段でIQFT(逆量子フーリエ変換)の構成。前段の回路記述量を抑止すために独自の記法を用いている。
- [Stern-Gerlach] 1-qubitを使って、著名なStern-Gerlachの実験を量子コンピューティングで模倣する。
- [Mermin-Peres Magic] 量子もつれになった4qubitを使ったマジック(pseudo-telepathyによる)。Aliceが3行目、Bobが3列目に値を設定する場合。