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
28
LLM勉強会にDifyを使ったことで見えてきたDifyのソフトウェア開発への活用ポイント
qunasys
0
36
第二期材料開発LLM勉強会ご案内
qunasys
0
740
LLM勉強会のためにアプリを作ろうか悩んだけど Difyが解決してくれた話
qunasys
1
4.7k
材料開発LLM勉強会ご案内
qunasys
0
2.4k
量子コンピュータの基礎から応用まで/quantum summit 2019
qunasys
31
35k
Other Decks in Technology
See All in Technology
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
330
ガバメントクラウドのセキュリティ対策事例について
fujisawaryohei
0
530
小学3年生夏休みの自由研究「夏休みに Copilot で遊んでみた」
taichinakamura
0
150
生成AIのガバナンスの全体像と現実解
fnifni
1
180
第3回Snowflake女子会_LT登壇資料(合成データ)_Taro_CCCMK
tarotaro0129
0
190
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
非機能品質を作り込むための実践アーキテクチャ
knih
3
1.1k
.NET 9 のパフォーマンス改善
nenonaninu
0
850
podman_update_2024-12
orimanabu
1
270
終了の危機にあった15年続くWebサービスを全力で存続させる - phpcon2024
yositosi
3
3k
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
330
【re:Invent 2024 アプデ】 Prompt Routing の紹介
champ
0
140
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
229
18k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Building Your Own Lightsaber
phodgson
103
6.1k
Gamification - CAS2011
davidbonilla
80
5.1k
Site-Speed That Sticks
csswizardry
2
190
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
We Have a Design System, Now What?
morganepeng
51
7.3k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
A Tale of Four Properties
chriscoyier
157
23k
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.