Upload
Download free for 30 days
Login
Submit Search
Quantum computer Qiskit challenge 2020 Nov week2 a
Download as PPTX, PDF
1 like
62 views
U
UkyoKimura
Qiskit challenge 2020 Nov week2 aの問題についてまとめました。 日本IBMの中村悠馬さんに監修していただきました。
Technology
Read more
1 of 6
Download now
Download to read offline
1
2
3
4
5
6
More Related Content
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
PPTX
[総まとめ] 量子コンピュータに関する課題研究.pptx
UkyoKimura
PPTX
量子回路上でのパズルゲーム解法プログラムの構築
UkyoKimura
PPTX
Quantum challenge2021 Ex1
UkyoKimura
PPTX
Quantum computer adder grover
UkyoKimura
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
[総まとめ] 量子コンピュータに関する課題研究.pptx
UkyoKimura
量子回路上でのパズルゲーム解法プログラムの構築
UkyoKimura
Quantum challenge2021 Ex1
UkyoKimura
Quantum computer adder grover
UkyoKimura
Featured
(20)
PDF
2024 State of Marketing Report – by Hubspot
Marius Sescu
PDF
Everything You Need To Know About ChatGPT
Expeed Software
PDF
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PDF
Skeleton Culture Code
Skeleton Technologies
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
PDF
Content Methodology: A Best Practices Report (Webinar)
contently
PPTX
How to Prepare For a Successful Job Search for 2024
Albert Qian
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
PDF
5 Public speaking tips from TED - Visualized summary
SpeakerHub
PDF
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
PDF
Getting into the tech field. what next
Tessa Mero
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
PDF
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
PDF
Introduction to Data Science
Christy Abraham Joy
PDF
Time Management & Productivity - Best Practices
Vit Horky
PDF
The six step guide to practical project management
MindGenius
PDF
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
Albert Qian
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
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Ad
Quantum computer Qiskit challenge 2020 Nov week2 a
1.
課題研究まとめ② 磐田南高校 28HR 木村宇恭
2.
WEEK2A 右の図のように3×3の格子状のマス目がある。 このうち、いくつかのマス目が点灯している。 これらの9個のスイッチを押して、すべてを消 灯させたい。ただし、スイッチを押すと、連動 して上下左右の隣接したライトの状態も切り替 わるものとする。 QUESTION
3.
考え方 ②if文を用いる if文とはある一定条件を満たすときのみ、指定された処理を行うを配置させるものである。 それを用いることで、どのボタンが点灯しているかを表す。 ③ボタンを押したとき隣り合うボタンを反転させる ボタンを押したとき隣り合うボタンは反転するのでCNゲートを用いて、ボタンを押したとき の反応を表す ④求める値の係数の正負のみを反転させる 求める値の係数の正負を反転させる ①9つのボタンを重ね合わせ状態にする 9つのボタンを全て押すか押さないかの重ね合わせ状態にする ⑤巻き戻しをさせる ③の操作の逆を行い巻き戻しをさせる。 ⑥平均値周りの反転を行い求める値を増幅する 平均値周りの反転を行うことで全てが消灯するときのボタンの押し方を増幅させる ⓪ボタンの状態をリストにして表す 最初の状態は (例) input
=[0, 0, 0, 1, 0, 1, 1, 1, 0](点灯しているものを1とする) 押すボタンは (例) output=[1, 0, 0, 1, 1, 0, 0, 0, 0](押すボタンを1とする)
4.
実際に回路にすると… ① ⑥ ② ④ ③ ⑤
5.
ANSWER 110010101 従って output =
[1,1,0,0,1,0,1,0,1]となる
6.
If文の作り方 関数の作り方 if lights[0]==1: qr
= QuantumRegister(19) cr = ClassicalRegister(9) qc = QuantumCircuit(qr,cr) qc.barrier(qr[9:18]) qc.x(qr[9:18]) qc.x(qr[18]) qc.h(qr[18]) qc.mct(qr[9:18],qr[18]) qc.x(qr[9:18]) qc.h(qr[18]) qc.x(qr[18]) return qc qc.x(1) def oracle(): 例えば lights =[0, 0, 0, 1, 0, 1, 1, 1, 0] という入力があったとすると、 条件 関 数 の 内 容 関数の名前 これにより、 lightが0の時 qc1にXゲートがつく lightが1の時 qc1に変化はないと いう状態を表すことができる。 これにより関数の内容を、その関数に つけた名前を入力することで使うこと ができるようになる。 補足情報
Download