Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
量子コンピュータはどのように計算するのか
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
ito-koichi
November 29, 2025
Technology
34
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
量子コンピュータはどのように計算するのか
2025/11/29 TokyuRuby会議16
ito-koichi
November 29, 2025
More Decks by ito-koichi
See All by ito-koichi
量子ビットを見てみよう
itokoichi01
0
23
RubyKaigiに参加したら何かやりたくなった
itokoichi01
0
49
はじめてみよう量子プログラミング
itokoichi01
0
790
Other Decks in Technology
See All in Technology
dbt Semantic Layerで進めるenechainのデータ民主化
akizhou
1
140
Local CI × GitHub Actions
gogutan
3
230
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
5
1.4k
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
210
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
180
ウォンテッドリーの最近のプロダクトと技術の紹介
stomk
0
270
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
200
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
290
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
180
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
120
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
310
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.4k
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
360
Agile that works and the tools we love
rasmusluckow
331
22k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
Done Done
chrislema
187
17k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
460
Game over? The fight for quality and originality in the time of robots
wayneb77
1
310
Transcript
量子コンピュータは どのように計算するのか 2025/11/29 TokyuRuby会議16 ito-koichi
自己紹介 名前: ito-koichi (伊藤公一) X:@itokoichi01X: 言語:Kotlin (サーバーサイド) Typescript (フロントエンド) Ruby (趣味)
参加コミュニティ:Asakusa.rb、千住.dev、 PicoPicoRuby、三浦半島.rb 趣味で量子コンピュータを勉強してます
量子コンピュータ なんか計算が速いらしい でも、どう計算してるの?
計算のしかた 計算のしかたを比較してみる • CPU • GPU • 量子コンピュータ
例題 4個の変数の値を変換する • A → A’ • B → B’
• C → C’ • D → D’
CPU Step 0 A B C D プロセッサ
CPU Step 1 A B C D プロセッサ A’
CPU Step 2 A B C D プロセッサ A’ B’
CPU Step 4 A B C D プロセッサ A’ B’
C’ D’ 順次処理
GPU Step 0 A B C D プロセッサ プロセッサ プロセッサ
プロセッサ
GPU Step 1 A B C D プロセッサ A’ B’
C’ D’ プロセッサ プロセッサ プロセッサ 並列処理
量子コンピュータ Step 0 A B C D
量子コンピュータ Step 1 量子重ね合わせ状態にエンコードする A B C D 量子重ね合わせ状態 A, B,
C, D
量子コンピュータ Step 2 量子ゲートを適用(ユニタリ変換)する A B C D 量子重ね合わせ状態 A’, B’,
C’, D’ 量子ゲート A -> A’ B -> B’ C -> C’ D -> D’
量子コンピュータ Step 3 測定して、確率的に結果を得る A B C D B’ 量子重ね合わせ状態 A’,
B’, C’, D’
量子コンピュータ Step n 何回も測定して、全部の結果を得る A B C D A’ B’ C’
D’ 量子重ね合わせ状態 A’, B’, C’, D’ 量子重ね合わせ状態のユニタリ変換+測定
量子コンピュータの計算の特徴① • 量子重ね合わせ状態のまま計算できる (効率が良い) • 結果は測定により確率的に得られる (効率が悪い) ◦ 欲しい結果を効率的に得られるアルゴリズムによって改善できる なので、以下の条件を満たすアルゴリズムが存在する計算は有利 • 重ね合わせ状態を活かせる
• 欲しい結果を効率的に得られる
量子コンピュータの計算の特徴② • 量子状態の大空間を利用できる ◦ 量子状態の数 = 2の「量子ビット数」乗 ◦ 例題では、(古典の)4変数を2量子ビットの重ね合わせで表せる ◦ 1024個の変数なら10量子ビットで表せる なので、機械学習など大次元データ空間を使うものを
効率的に扱えるのではないかと期待されている
まとめ 計算のしかた • CPU 順次処理 • GPU 並列処理 • 量子コンピュータ 量子重ね合わせ状態のユニタリ変換+測定 量子コンピュータが有利になる計算もあるが、総合的に適材適所で選択しよう
量子コンピュータを使ってみよう • シミュレータ ◦ webUI ▪ IBM Quantum Composer (https://quantum.cloud.ibm.com/composer)
▪ Quirk (https://algassert.com/quirk) ◦ SDK ▪ Python: Qiskit (https://www.ibm.com/quantum/qiskit) ▪ Ruby: quantum_ruby (https://github.com/AlessandroMinali/quantum_ruby) • すいません、使ったことないです • 実機 ◦ IBM Quantum Platform (https://quantum.cloud.ibm.com/)