SlideShare a Scribd company logo
課題研究まとめ1
磐田南高校理数科1年
田野 拓実
1 量子コンピューターとは?
2 量子ゲート
3 加算器
4 グローバーのアルゴリズム
5 足し算+グローバー
1 量子コンピューターとは?
2つの状態を1度に取る「重ね合わせ」という状態を取ることのできる「量子
ビット」を用いて計算を行うコンピューターのこと。2つの状態を1度に取れ
るので、量子ビットが1個あると2^1=2つ、2個あると2^2=4つ、3個
あると2^3=8つ・・・というように並列計算を行うことができる。たとえ
ば、桁数の大きい因数分解などは量子コンピューターの得意分野である。
現在のコンピュー
ター
量子コンピュー
ター
計算を行うビット 0か1のどちらか
をとる
0と1の重ね合わ
せもとれる
因数分解1万桁に
かかる時間
約1000億年 数時間~数日
VS
引用「量子コンピューター 超並列計算のからくり」
…著 竹内繁樹
2 量子ゲート
量子ビットの値に対して、ある一定のルールに従って
値を出力するもの。
1 Xゲート
2 Hゲート
3 CZゲート
4 CXゲート
5 CCXゲート
6 ORゲート
7 XORゲート
1 Xゲート
入力 出力
|0> |1>
|1> |0>
入力
出力
|0>、|1>にXゲートを使うとそ
れぞれ|1>、|0>になる。
2 Hゲート
入力 出力
|0> 1/ 2 (|0>+|1>)
|1> 1/ 2 (|0>-|1>)
例えば、|0>にHゲートを使うと、
1/ 2 (|0>+|1>)という重ね合
わせ状態を作ることができる。
3 CZゲート
a
b
c
d
|a> |b> |cd>
|0> |0> |00>
|1> |0> |10>
|0> |1> |01>
|1> |1> -|11>
a,bともに|1>であるときだけ係数が反
転(|11>が-|11>になる)する。
4 CXゲート
a
b
c
d
|a> |b> |c> |d>
|0> |0> |0> |0>
|1> |0> |1> |1>
|0> |1> |0> |1>
|1> |1> |1> |0>
a(・の部分)が|1>のとき、b
(⊕の部分)を反転
5 CCX(AND)ゲート
a
b
c
a,b(・の部分)がともに
|1>のときにc(⊕の部分)
を反転
|a> |b> |c>
|0> |0> |0>
|1> |0> |0>
|0> |1> |0>
|1> |1> |1>
6 ORゲート
a
c
b
|a> |b> |c>
|0> |0> |0>
|1> |0> |1>
|0> |1> |1>
|1> |1> |1>
a,bのどちらかが|1>の
ときcが|1>となる。
7 XORゲート
a
b
c
|a> |b> |c>
|0> |0> |0>
|1> |0> |1>
|0> |1> |1>
|1> |1> |0>
a,bのどちらか一方のみ
が|1>のとき、cが|1>
になる。a,bがどちらも
|1>のとき、cは|0>の
まま。
他の組み合わせ方でも
作れるが、できるだけ
量子ゲートが少ない方
が「コスト」が少なく
なり、エラーが起きに
くくなる。
3 加算器
1 半加算器
2 全加算器
加算器とは足し算を行う
論理回路のこと。
1 半加算器 半加算器は2つの2進数の足し算を行う
入力A
入力B
出力s 桁上げ出力C
入力A 入力B 桁上げ
出力C
出力S
|0> |0> |0> |0>
|1> |0> |0> |1>
|0> |1> |0> |1>
|1> |1> |1> |0>
XORゲート
ANDゲート
入力A,Bと桁上げ出力Cは
XORゲートの関係、入力A,B
と出力SはANDゲートの関
係にある。
入力A(a)
入力B(b)
a+b1桁目
a+b2桁目
a+b+c1桁目
a+b+c2桁目
桁上げ出力X(c)
2 全加算器(1)
出力s
桁上げ出力C
a+bの1桁目
を計算
a+bの2桁目
を計算
この場合は、3ビットの足し算。
回路を組み合わせれば、何桁でも
できる。
入力
A
入力
B
桁上
げ入
力X
桁上
げ出
力C
出力
S
|0> |0> |0> |0> |0>
|1> |0> |0> |0> |1>
|0> |1> |0> |0> |1>
|0> |0> |1> |0> |1>
|1> |1> |0> |1> |0>
|1> |0> |1> |1> |0>
|0> |1> |1> |1> |0>
|1> |1> |1> |1> |1>
2 全加算器(2)
入力A(a)
入力B(b)
出力S
桁上げ出力C
a+b1桁目
a+b2桁目
a+b+c1桁目
a+b+c2桁目
a+bの1桁目
をコピー
Cが1で反転
cが1のとき、a+bの1
桁目を反転させて
a+b+c1桁目にコピー
a+bの2桁目をコピー
「cが1」かつ
「a+bの1桁目が
1」で反転
桁上げ出力X(c)
「cが1」かつ「a+bの1桁目が
1」のときa+b2桁目を反転させ
て、a+b+c2桁にコピー
4 グローバーのアルゴリズム
グローバーのアルゴリズムとはN個の箱の中から
当たりの箱(この場合はw)を探し出す回路のこ
と。現在のコンピューターよりも早く探し出すこ
とができる。
1 振幅増幅
2 7量子ビットの場合
1 振幅増幅(1) 量子コンピューターがあたりを探し
出す確率を高める操作。
(振幅の2乗が確率となる。)
これが振幅増幅を行う回路。(2量子ビッ
トの場合)
この回路で
は、ここで
|11>を測定
する。
1 振幅増幅(2)
|00> |01> |10> |11>
|00>
初め|00>であるのを、Hゲートによって
|00>+|01>+|10>+|11>という重ね合わせ状
態にする。
|00>,|01>,|10>,|11>の測定さ
れる確率はすべて25%になる。
初め、|0>の測
定される確率は
100%
振
幅
1 振幅増幅(3)
|00> |01> |10> |11>
|00> |01> |10> |11>
欲しい物(ここ
では|11>)の係
数を反転。
補助量子ビット
と呼ばれる。
振
幅
1 振幅増幅(4)
|00> |01> |10> |11>
|11>
ここで平均値
[この場合は(0.50+0.50+0.50-0.50)/4=0.25]
周りの反転をする。
そうすることで、|00>,|01>,|10>の確率は全て0、
|11>の確率は1になる。
この操作1回で欲しい物の
振幅が大きくならない場合
はこの操作を何回か繰り返
して、振幅が大きくなる回
数を見つければよい。
2 7量子ビットの場合
重ね合わせ
欲しい状態の折り返し
(この場合は|0111111>)
平均値周りの反転
最大振幅が得ら
れるのは8回繰り
返した時
足し算+グローバー(1)
重ね合わせ状
態を作る
5 足し算+グローバー
足し算のような処理をしたものをグ
ローバーのアルゴリズムによって得
る確率を高める。
足し算+グローバー(2)
足し算を行う
(半加算器)
半加算器によって
|00>→|00>
|01>→|01>
|10>→|01>
|11>→|10>
となり、2.3行目に
コピーされる。
足し算+グローバー(3)
XゲートとANDゲー
トによって|00>の
場合のみ反転
同じ操作を繰り返す
ことによって反転の
結果を上の2段に対
応させる。
赤色の棒グラフは振幅が反転
していることを表す。
足し算+グローバー(4)
平均値周りの反転
|00>のみが増幅されている。
|10>(inputは|11>)を増幅させたい場
合は、ここのXゲートを変えることで
できるが|01>(inputは|01>か|10>)は
平均値周りの反転の時点で平均値が0
になってしまうためできない。

More Related Content

Recently uploaded

LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアルLoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
CRI Japan, Inc.
 
JSAI_類似画像マッチングによる器への印象付与手法の妥当性検証_ver.3_高橋りさ
JSAI_類似画像マッチングによる器への印象付与手法の妥当性検証_ver.3_高橋りさJSAI_類似画像マッチングによる器への印象付与手法の妥当性検証_ver.3_高橋りさ
JSAI_類似画像マッチングによる器への印象付与手法の妥当性検証_ver.3_高橋りさ
0207sukipio
 
ReonHata_便利の副作用に気づかせるための発想支援手法の評価---行為の増減の提示による気づきへの影響---
ReonHata_便利の副作用に気づかせるための発想支援手法の評価---行為の増減の提示による気づきへの影響---ReonHata_便利の副作用に気づかせるための発想支援手法の評価---行為の増減の提示による気づきへの影響---
ReonHata_便利の副作用に気づかせるための発想支援手法の評価---行為の増減の提示による気づきへの影響---
Matsushita Laboratory
 
遺伝的アルゴリズムと知識蒸留による大規模言語モデル(LLM)の学習とハイパーパラメータ最適化
遺伝的アルゴリズムと知識蒸留による大規模言語モデル(LLM)の学習とハイパーパラメータ最適化遺伝的アルゴリズムと知識蒸留による大規模言語モデル(LLM)の学習とハイパーパラメータ最適化
遺伝的アルゴリズムと知識蒸留による大規模言語モデル(LLM)の学習とハイパーパラメータ最適化
t m
 
CS集会#13_なるほどわからん通信技術 発表資料
CS集会#13_なるほどわからん通信技術 発表資料CS集会#13_なるほどわからん通信技術 発表資料
CS集会#13_なるほどわからん通信技術 発表資料
Yuuitirou528 default
 
論文紹介:When Visual Prompt Tuning Meets Source-Free Domain Adaptive Semantic Seg...
論文紹介:When Visual Prompt Tuning Meets Source-Free Domain Adaptive Semantic Seg...論文紹介:When Visual Prompt Tuning Meets Source-Free Domain Adaptive Semantic Seg...
論文紹介:When Visual Prompt Tuning Meets Source-Free Domain Adaptive Semantic Seg...
Toru Tamaki
 
This is the company presentation material of RIZAP Technologies, Inc.
This is the company presentation material of RIZAP Technologies, Inc.This is the company presentation material of RIZAP Technologies, Inc.
This is the company presentation material of RIZAP Technologies, Inc.
chiefujita1
 
TaketoFujikawa_物語のコンセプトに基づく情報アクセス手法の基礎検討_JSAI2024
TaketoFujikawa_物語のコンセプトに基づく情報アクセス手法の基礎検討_JSAI2024TaketoFujikawa_物語のコンセプトに基づく情報アクセス手法の基礎検討_JSAI2024
TaketoFujikawa_物語のコンセプトに基づく情報アクセス手法の基礎検討_JSAI2024
Matsushita Laboratory
 

Recently uploaded (8)

LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアルLoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
LoRaWAN 4チャンネル電流センサー・コンバーター CS01-LB 日本語マニュアル
 
JSAI_類似画像マッチングによる器への印象付与手法の妥当性検証_ver.3_高橋りさ
JSAI_類似画像マッチングによる器への印象付与手法の妥当性検証_ver.3_高橋りさJSAI_類似画像マッチングによる器への印象付与手法の妥当性検証_ver.3_高橋りさ
JSAI_類似画像マッチングによる器への印象付与手法の妥当性検証_ver.3_高橋りさ
 
ReonHata_便利の副作用に気づかせるための発想支援手法の評価---行為の増減の提示による気づきへの影響---
ReonHata_便利の副作用に気づかせるための発想支援手法の評価---行為の増減の提示による気づきへの影響---ReonHata_便利の副作用に気づかせるための発想支援手法の評価---行為の増減の提示による気づきへの影響---
ReonHata_便利の副作用に気づかせるための発想支援手法の評価---行為の増減の提示による気づきへの影響---
 
遺伝的アルゴリズムと知識蒸留による大規模言語モデル(LLM)の学習とハイパーパラメータ最適化
遺伝的アルゴリズムと知識蒸留による大規模言語モデル(LLM)の学習とハイパーパラメータ最適化遺伝的アルゴリズムと知識蒸留による大規模言語モデル(LLM)の学習とハイパーパラメータ最適化
遺伝的アルゴリズムと知識蒸留による大規模言語モデル(LLM)の学習とハイパーパラメータ最適化
 
CS集会#13_なるほどわからん通信技術 発表資料
CS集会#13_なるほどわからん通信技術 発表資料CS集会#13_なるほどわからん通信技術 発表資料
CS集会#13_なるほどわからん通信技術 発表資料
 
論文紹介:When Visual Prompt Tuning Meets Source-Free Domain Adaptive Semantic Seg...
論文紹介:When Visual Prompt Tuning Meets Source-Free Domain Adaptive Semantic Seg...論文紹介:When Visual Prompt Tuning Meets Source-Free Domain Adaptive Semantic Seg...
論文紹介:When Visual Prompt Tuning Meets Source-Free Domain Adaptive Semantic Seg...
 
This is the company presentation material of RIZAP Technologies, Inc.
This is the company presentation material of RIZAP Technologies, Inc.This is the company presentation material of RIZAP Technologies, Inc.
This is the company presentation material of RIZAP Technologies, Inc.
 
TaketoFujikawa_物語のコンセプトに基づく情報アクセス手法の基礎検討_JSAI2024
TaketoFujikawa_物語のコンセプトに基づく情報アクセス手法の基礎検討_JSAI2024TaketoFujikawa_物語のコンセプトに基づく情報アクセス手法の基礎検討_JSAI2024
TaketoFujikawa_物語のコンセプトに基づく情報アクセス手法の基礎検討_JSAI2024
 

Featured

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

量子コンピュータ 加算器とGrover