Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Q#とNWChemを試してみた/qsharp-nwchem
Search
QunaSys
May 21, 2019
Technology
0
1k
Q#とNWChemを試してみた/qsharp-nwchem
Build 2019 local community event for Q# in Tokyo
での登壇資料です。
QunaSys
May 21, 2019
Tweet
Share
More Decks by QunaSys
See All by QunaSys
2025年度LLM研究会サービス案
qunasys
0
130
LLM勉強会にDifyを使ったことで見えてきたDifyのソフトウェア開発への活用ポイント
qunasys
0
38
第二期材料開発LLM勉強会ご案内
qunasys
0
830
LLM勉強会のためにアプリを作ろうか悩んだけど Difyが解決してくれた話
qunasys
1
4.9k
材料開発LLM勉強会ご案内
qunasys
0
2.6k
量子コンピュータの基礎から応用まで/quantum summit 2019
qunasys
31
35k
Other Decks in Technology
See All in Technology
CDKのコードレビューを楽にするパッケージcdk-mentorを作ってみた/cdk-mentor
tomoki10
0
210
Bring Your Own Container: When Containers Turn the Key to EDR Bypass/byoc-avtokyo2024
tkmru
0
850
【JAWS-UG大阪 reInvent reCap LT大会 サンバが始まったら強制終了】“1分”で初めてのソロ参戦reInventを数字で振り返りながら反省する
ttelltte
0
140
東京Ruby会議12 Ruby と Rust と私 / Tokyo RubyKaigi 12 Ruby, Rust and me
eagletmt
3
870
iPadOS18でフローティングタブバーを解除してみた
sansantech
PRO
1
140
KMP with Crashlytics
sansantech
PRO
0
240
Docker Desktop で Docker を始めよう
zembutsu
PRO
0
160
PaaSの歴史と、 アプリケーションプラットフォームのこれから
jacopen
7
1.4k
[IBM TechXchange Dojo]Watson Discoveryとwatsonx.aiでRAGを実現!事例のご紹介+座学②
siyuanzh09
0
110
Copilotの力を実感!3ヶ月間の生成AI研修の試行錯誤&成功事例をご紹介。果たして得たものとは・・?
ktc_shiori
0
350
The future we create with our own MVV
matsukurou
0
2k
WantedlyでのKotlin Multiplatformの導入と課題 / Kotlin Multiplatform Implementation and Challenges at Wantedly
kubode
0
250
Featured
See All Featured
Code Review Best Practice
trishagee
65
17k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.4k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Code Reviewing Like a Champion
maltzj
521
39k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
GraphQLとの向き合い方2022年版
quramy
44
13k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
BBQ
matthewcrist
85
9.4k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Visualization
eitanlees
146
15k
Transcript
Q#ͱNWChemΛࢼͯ͠Έͨ QunaSys CEO ༶ ఱ !1 Build 2019 local community
event for Q# in Tokyo
Outline I. ձࣾհ II. ྔࢠίϯϐϡʔλͰྔࢠԽֶܭࢉ III. Q#ͱNWChemʹ͍ͭͯ !2
ձࣾհ !3
Confidential ձࣾհ !4 ֓ཁ ໊ࣾ גࣜձࣾQunaSys ʢΩϡφγεʣ ઃཱ 20182݄ ࣄۀ༰
• ສೳྔࢠίϯϐϡʔλͷ ΞϧΰϦζϜɾιϑτ։ൃ • ڞಉݚڀ ϝσΟΞܝࡌ
Quantum Summitͷ։࠵ ྔࢠίϯϐϡʔλͷجຊ͔ΒϏδωεԠ༻ํ๏Λ·ͱΊͨΠϕϯτ !5 https://www.q-summit.net/ 2ؒͰ200ਓΛ͢ࢀՃऀʹ ͝དྷ͖·ͨ͠ɻ ੈքͰ׆༂͢Δۀքؔऀ 24໊ʹ͝ߨԋ͖·ͨ͠ɻ ଟ͘ͷاۀɾେֶʹεϙϯαʔ͖·ͨ͠ɻ
ߨԋࢿྉ: https://speakerdeck.com/qunasys/ quantum-summit-2019
Quantum Native Dojo !6 ྔࢠίϯϐϡʔλษڧڭࡐ ࣍ ===== ୈ1෦ɿجૅฤ ===== 0.
ͦͦྔࢠίϯϐϡʔλͱʁ 1. ྔࢠใͷجૅ 2. ྔࢠΞϧΰϦζϜೖ 3. ྔࢠΞϧΰϦζϜͷ࣮ߦڥ ===== ୈ2෦ɿNISQฤ ===== 4. ྔࢠμΠφϛΫεγϛϡϨʔγϣϯ 5. มྔࢠճ࿏ʹجͮ͘ΞϧΰϦζϜ 6. ྔࢠԽֶܭࢉ ===== ୈ3෦ɿLong-termฤ ===== 7. Ґ૬ਪఆʹجͮ͘ΞϧΰϦζϜ 8. ΦϥΫϧΞϧΰϦζϜ 9. ྔࢠޡΓగਖ਼ೖ ྔࢠίϯϐϡʔλʹؔ͢Δલఏࣝෆཁͳ ษڧڭࡐɻ Near term͔ΒLong termΞϧΰϦζϜ·ͰΛ ͘Χόʔ͠ແྉʂ Google ColabΛͬͯϓϩάϥϛϯάڥ͕ͳͯ͘ ࣮ίʔυΛಈ͔͠ͳ͕ΒֶΔɻ https://dojo.qulacs.org https://github.com/qulacs/quantum-native-dojo
ྔࢠίϯϐϡʔλͰྔࢠԽֶܭࢉ !7
ྔࢠͷ࣌ʹඋ͑Δํ๏ ྔࢠίϯϐϡʔλԿͰͰ͖ ΔͱࢥΘΕ͕͕ͪͩɺ ࢈ۀ͝ͱʹ্ཱ͕ͪΓͷ࣌ظͱ ΠϯύΫτେ͖͘ҟͳΔ ਖ਼͍ࣝ͠ʹج͍ͮͨɺՄೳੑͷݟۃΊ BCG࡞ϨϙʔτΑΓɺҾ༻ ʢhttps://www.bcg.com/ja-jp/publications/2018/next-decade-quantum-computing-how-play.aspxʣ Խֶʢಛʹεϖγϟ ϦςΟέϛΧϧʣ
࠷࣮ݱੑ͕ߴ͍ͱ ͞ΕΔ !8 ࣗવݹయྗֶͰಈ͔ͳ͍ɻ ͠ɺࣗવΛγϛϡϨʔγϣϯ ͚ͨ͠Εɺ ྔࢠྗֶʹج͍ͮͨܭࢉػ Λ࡞Δ͖ͩɻ Richard Feynman
ྔࢠԽֶܭࢉ on ྔࢠίϯϐϡʔλ ࢠيಓ๏ͱqubitͷؔ جຊతʹ 1qubit = 1جఈؔ(sto-3gͳͲ) !9 !"
!# !$ %" %# %& |1 1 1 1 ⋯ 1 1 0 0 ⋯ 0 0⟩ !" !# !$ %" %& |1 1 1 1 ⋯ 1 0 1 0 ⋯ 0 0⟩
ྔࢠԽֶܭࢉख๏ɿVQE !10 ม๏Λ༻͍ͨख๏ ! " 11 ⋯ 100 ⋯ 0
&(") )* +* ( A min " &(")|0|&(") ( " ) A. Perruzo et al, Nature Communications, 5, 4213 (2014) ΤωϧΪʔͷଌఆͰ࠷খʹͳΔ㱺 ࠷খݻ༗ͷݻ༗ϕΫτϧ
Q#ͱNWChemʹ͍ͭͯ !11
Q# and NWChem: Tools for Scalable Quantum Chemistry • NWChem:
Φʔϓϯιʔεͷ ྔࢠԽֶܭࢉϥΠϒϥϦ • Quantum Development Kit chemistry library: Microsoft͕࠷ۙެ։ɻ ྔࢠԽֶ͚ྔࢠܭࢉ ϥΠϒϥϦ(written in Q#) • ৽͍͠ϑΝΠϧܗࣜ ʮBroombridgeʯʹΑΓɺ γʔϜϨεʹྔࢠԽֶܭࢉ Λ࣮ߦՄ !12 https://www.youtube.com/watch?v=Hxz0tH8jDfQ
Q#ͱNWChemͷྲྀΕ !13
ྔࢠԽֶܭࢉ on Q# & NWChem !14 ܭࢉϓϩηε ྔࢠίϯϐϡʔλͰѻ͑Δܗࣜʹ Jordan-WignerมɺBravyi-Kitaevมɺɾɾɾ ୈೋྔࢠԽϋϛϧτχΞϯ࡞
ॏͳΓੵܭࢉ جఈΤωϧΪʔཧྔܭࢉ มΞϧΰϦζϜɺҐ૬ਪఆɺݫີର֯Խɺɾɾɾ ࣭ͷύϥϝʔλೖྗ ݩૉه߸ɺஔɺجఈؔɺɾɾɾ ϥΠϒϥϦ Q# Quantum Development Kit
EMSL Arrows ࣭ͷใ͔ΒॏͳΓੵΛܭࢉ → ୈೋྔࢠԽϋϛϧτχΞϯ (Broombridgeܗࣜ) Λग़ྗ !15 NWChemͷΦϯϥΠϯϑϩϯτΤϯυ https://arrows.emsl.pnnl.gov/api/qsharp_chem
Broombridge format Broombridge: • NWChemͷग़ྗΛQ#Ͱར༻Ͱ ͖Δܗʹͨ͠ͷ • YAMLܗࣜͰݪࢠஔɺॏͳΓ ੵͷใ͕֨ೲ͞Ε͍ͯΔ !16
ୈೋྔࢠԽϋϛϧτχΞϯͷอଘܗࣜʢྫɿH2ࢠʣ H2ࢠͷݪࢠஔ ୈೋྔࢠԽϋϛϧτχΞϯ ʢॏͳΓੵʣ https://docs.microsoft.com/en-us/quantum/libraries/chemistry/installation?view=qsharp-preview#using-the-quantum-development-kit-with-nwchem
ϑΝΠϧಡΈࠐΈ& JWม BroombridgeϑΝΠϧʢyamlʣ͔ΒୈೋྔࢠԽϋϛϧτχΞϯಡΈࠐΈ Jordan-WignerมʹΑΓɺྔࢠίϯϐϡʔλ͕ѻ͑Δܗࣜʹ !17
جఈΤωϧΪʔܭࢉ • ίʔυͷ͋ΔσΟϨΫτϦ (Quantum.Chemistry.Molecular Hydrogen) ʹҠಈ͠dotnet run • ϋϛϧτχΞϯ
• Jordan-Wignerม • TrotterizationʹΑΔجఈΤω ϧΪʔܭࢉ !18 H2ࢠͷجఈΤωϧΪʔ https://docs.microsoft.com/en-us/quantum/libraries/chemistry/samples/molecular-hydrogen
ඞཁϦιʔεͷݟੵΓ GetGateCountΛ༻͍ͯ ඞཁήʔτͷݟੵΓ Trotterization֤छ๏ ʹ͓͚Δɺ ΤωϧΪʔܭࢉʹඞཁ ήʔτ͕ಘΒΕΔ !19 ΤωϧΪʔܭࢉ͕ࠔͰɺඞཁήʔτͷݟੵΓ͕Մೳ https://docs.microsoft.com/en-us/quantum/libraries/chemistry/installation?view=qsharp-preview#using-the-quantum-development-kit-with-nwchem
VQEΛ༻͍ͨجఈΤωϧΪʔܭࢉ !20 H2ࢠͷجఈঢ়ଶΤωϧΪʔ https://github.com/christopherkang/Quantum/tree/master/Samples/src/VQESimulation ݫີͳʢ-1.137 hartreeʣ ͱ͍ۙ
·ͱΊ ྔࢠԽֶɿྔࢠίϯϐϡʔλͷ࠷ॳͷΞϓϦέʔγϣϯ ӳޠ : NWChem + Q# ຊޠɿpyscf + openfermion
+ qulacs @Quantum Native Dojo!! !21 ͱݴ͍͍͚ͨͲɺ ࠓྔࢠίϯϐϡʔλʹऔΓ ΜͰ͍Δօ͞Μʂʂ ࣗͷྔࢠίϯϐϡʔλݴޠΛ ࡞Γ·͠ΐ͏ɻ ࠓͳΒ·ͩؒʹ߹͏ʂ 3ޙ࣮͢Δͷ͕ ଟ͗ͯ͢ݸਓͰແཧʹͳΔɻ qlazy: https://github.com/samn33/qlazy QuPy: https://github.com/ken-nakanishi/qupy
We are Quantum Native.