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
LLM勉強会にDifyを使ったことで見えてきたDifyのソフトウェア開発への活用ポイント
qunasys
0
22
第二期材料開発LLM勉強会ご案内
qunasys
0
650
LLM勉強会のためにアプリを作ろうか悩んだけど Difyが解決してくれた話
qunasys
1
4.5k
材料開発LLM勉強会ご案内
qunasys
0
2.3k
量子コンピュータの基礎から応用まで/quantum summit 2019
qunasys
31
35k
Other Decks in Technology
See All in Technology
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
430
The Role of Developer Relations in AI Product Success.
giftojabu1
0
140
The Rise of LLMOps
asei
7
1.7k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
100
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
180
第1回 国土交通省 データコンペ参加者向け勉強会③- Snowflake x estie編 -
estie
0
130
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
130
複雑なState管理からの脱却
sansantech
PRO
1
150
OS 標準のデザインシステムを超えて - より柔軟な Flutter テーマ管理 | FlutterKaigi 2024
ronnnnn
0
220
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
1.3k
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
37
12k
Featured
See All Featured
Building Adaptive Systems
keathley
38
2.3k
Docker and Python
trallard
40
3.1k
Automating Front-end Workflow
addyosmani
1366
200k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Facilitating Awesome Meetings
lara
50
6.1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Documentation Writing (for coders)
carmenintech
65
4.4k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
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.