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
620
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
Lambdaと地方とコミュニティ
miu_crescent
2
370
20241120_JAWS_東京_ランチタイムLT#17_AWS認定全冠の先へ
tsumita
2
240
強いチームと開発生産性
onk
PRO
33
11k
ドメイン名の終活について - JPAAWG 7th -
mikit
33
20k
データプロダクトの定義からはじめる、データコントラクト駆動なデータ基盤
chanyou0311
2
280
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
0
980
元旅行会社の情シス部員が教えるおすすめなre:Inventへの行き方 / What is the most efficient way to re:Invent
naospon
2
330
リンクアンドモチベーション ソフトウェアエンジニア向け紹介資料 / Introduction to Link and Motivation for Software Engineers
lmi
4
300k
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.1k
The Rise of LLMOps
asei
5
1.2k
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Scaling GitHub
holman
458
140k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
What's in a price? How to price your products and services
michaelherold
243
12k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
A better future with KSS
kneath
238
17k
KATA
mclloyd
29
14k
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.