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
iPadOS18でフローティングタブバーを解除してみた
sansantech
PRO
1
140
月間60万ユーザーを抱える 個人開発サービス「Walica」の 技術スタック変遷
miyachin
1
140
JuliaTokaiとJuliaLangJaの紹介 for NGK2025S
antimon2
1
120
20250116_自部署内でAmazon Nova体験会をやってみた話
riz3f7
1
100
20250116_JAWS_Osaka
takuyay0ne
2
200
自社 200 記事を元に整理した読みやすいテックブログを書くための Tips 集
masakihirose
2
330
FODにおけるホーム画面編成のレコメンド
watarukudo
PRO
2
280
0→1事業こそPMは営業すべし / pmconf #落選お披露目 / PM should do sales in zero to one
roki_n_
PRO
1
1.5k
My small contributions - Fujiwara Tech Conference 2025
ijin
0
1.4k
データ基盤におけるIaCの重要性とその運用
mtpooh
4
520
駆け出しリーダーとしての第一歩〜開発チームとの新しい関わり方〜 / Beginning Journey as Team Leader
kaonavi
0
120
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5.1k
Designing for humans not robots
tammielis
250
25k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
Making Projects Easy
brettharned
116
6k
Statistics for Hackers
jakevdp
797
220k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
3
180
Site-Speed That Sticks
csswizardry
3
270
A designer walks into a library…
pauljervisheath
205
24k
Speed Design
sergeychernyshev
25
740
Facilitating Awesome Meetings
lara
51
6.2k
GraphQLとの向き合い方2022年版
quramy
44
13k
Making the Leap to Tech Lead
cromwellryan
133
9k
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.