Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Q#とNWChemを試してみた/qsharp-nwchem

 Q#とNWChemを試してみた/qsharp-nwchem

Build 2019 local community event for Q# in Tokyo
での登壇資料です。

QunaSys

May 21, 2019
Tweet

More Decks by QunaSys

Other Decks in Technology

Transcript

  1. Confidential ձࣾ঺հ !4 ֓ཁ ໊ࣾ גࣜձࣾQunaSys
 ʢΩϡφγεʣ ઃཱ 2018೥2݄ ࣄۀ಺༰

    • ສೳྔࢠίϯϐϡʔλͷ
 ΞϧΰϦζϜɾιϑτ։ൃ • ڞಉݚڀ ϝσΟΞܝࡌ
  2. 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
  3. ྔࢠԽֶܭࢉ 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⟩
  4. ྔࢠԽֶܭࢉख๏ɿVQE !10 ม෼๏Λ༻͍ͨख๏ ! " 11 ⋯ 100 ⋯ 0

    &(") )* +* ( A min " &(")|0|&(") ( " ) A. Perruzo et al, Nature Communications, 5, 4213 (2014) ΤωϧΪʔͷଌఆͰ࠷খʹͳΔ㱺 ࠷খݻ༗஋ͷݻ༗ϕΫτϧ
  5. 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
  6. ྔࢠԽֶܭࢉ on Q# & NWChem !14 ܭࢉϓϩηε ྔࢠίϯϐϡʔλͰѻ͑Δܗࣜʹ Jordan-Wignerม׵ɺBravyi-Kitaevม׵ɺɾɾɾ ୈೋྔࢠԽϋϛϧτχΞϯ࡞੒

    ॏͳΓੵ෼ܭࢉ جఈΤωϧΪʔ౳෺ཧྔܭࢉ ม෼ΞϧΰϦζϜɺҐ૬ਪఆɺݫີର֯Խɺɾɾɾ ෺࣭ͷύϥϝʔλೖྗ ݩૉه߸ɺ഑ஔɺجఈؔ਺ɺɾɾɾ ϥΠϒϥϦ Q# Quantum Development Kit
  7. 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
  8. جఈΤωϧΪʔܭࢉ • ίʔυͷ͋ΔσΟϨΫτϦ (Quantum.Chemistry.Molecular Hydrogen) 
 ʹҠಈ͠dotnet run • ϋϛϧτχΞϯ

    • Jordan-Wignerม׵ • TrotterizationʹΑΔجఈΤω ϧΪʔܭࢉ !18 H2෼ࢠͷجఈΤωϧΪʔ https://docs.microsoft.com/en-us/quantum/libraries/chemistry/samples/molecular-hydrogen
  9. ·ͱΊ ྔࢠԽֶɿྔࢠίϯϐϡʔλͷ࠷ॳͷΞϓϦέʔγϣϯ ӳޠ : NWChem + Q# ೔ຊޠɿpyscf + openfermion

    + qulacs @Quantum Native Dojo!! !21 ͱݴ͍͍͚ͨͲɺ
 ࠓྔࢠίϯϐϡʔλʹऔΓ
 ૊ΜͰ͍Δօ͞Μʂʂ
 ࣗ෼ͷྔࢠίϯϐϡʔλݴޠΛ ࡞Γ·͠ΐ͏ɻ ࠓͳΒ·ͩؒʹ߹͏ʂ
 3೥ޙ͸࣮૷͢Δ΋ͷ͕
 ଟ͗ͯ͢ݸਓͰ͸ແཧʹͳΔɻ qlazy: https://github.com/samn33/qlazy QuPy: https://github.com/ken-nakanishi/qupy