際際滷

際際滷Share a Scribd company logo
Ver1.0 2019定5埖30晩
m仇岷繁miyachi@langedge.jp
1
Blueqat Summit Tokyo 2019
茶氏ネタ
仝プログラマの蕕料迅咼廛蹈哀薀潺鵐鞍謇T々
LangEdge,Inc.
2
@le_miyachi
LangEdge,Inc.
室g差典PKIプログラマ
碧並災使睦佻淹疉脾徨俸兆狼
楚徨唆跡圓肪汐?茶氏
箸龍挫氏の_岸、OSS_k
試咤OsSAL.org ┘ッサル
オ`プンソ`ス俸兆φJ^ラボ
奉來
3
サル楚徨何
楚徨プログラミング
LangEdge,Inc.
https://www.ossal.org/qc/
4
茶氏
プログラマの蕕料迅咼廛蹈哀薀潺鵐鞍謇T
LangEdge,Inc.
Part 1:
vB方僥と1楚徨ビット麻
Part 2:
楚徨ゲ`ト侏のプログラミング
Part 3:
楚徨アニ`リング侏のプログラミング
2019定8埖か9埖に_岸嚠協
5
茶氏佩をやった湖
LangEdge,Inc.
SDKを聞ったサンプルをg廾´
でも巷_rにはバ`ジョンアップされて、
1SDKのAPI兆が筝されてる
2SDKのAPIの嘛が笋錣辰
3SDKのAPIがoくなっている
まだVer1.0念だから碧圭がoい´
6
楚徨フレ`ムワ`ク曳^ 2019定5埖F壓
LangEdge,Inc.
Qiskit
Cirq
Blueqat
?析n.屮蹈奪枅魃輅召できる“謇T
?指揃蹐竃せるQiskitよりシンプル。
?シンプルにける“娜蒋Z秤鷆爐ぃ
0.8.0
0.5.0
0.3.7
import qiskit
qiskit.__version__
import cirq
cirq.__version__
import blueqat
blueqat.__version__
AttributeError: module 'blueqat' has no attribute '__version__'
7LangEdge,Inc.
を聞う  
h廠 Anaconda3
參和よりh廠に栽わせてダウンロ`ドとインスト`ル
https://www.anaconda.com/distribution/
ライブラリ Blueqat ┘屮覃`キャット
Windows井 Anaconda Prompt
MacOS井坤食`ミナル
インスト`ル
アンインスト`ル
pip install blueqat
pip uninstall blueqat
☆ Blueqatのバ`ジョン
バ`ジョン_J圭隈が音苧´
pip install blueqat では 0.3.7 が
インスト`ルされた。
☆ Blueqatの_k圷
晩云の楚徨ベンチャ`である
MDR芙が_k圷だが、OSS晒を
してオ`プンなSDKとして巷_。
LangEdge,Inc.
階秘T ┷gな聞い圭
アダマ`ルゲ`ト のg佩
8
from blueqat import *
Circuit().h[0].m[:].run(shots=1000)
Counter({'1': 488, '0': 512})
g佩Y惚
楚徨指揃伏撹 アダマ`ル Qy g佩1000ショット
from blueqat import *
qc = Circuit(1) # 1qbit峺協
qc.h[0].m[:] # 指揃
r = qc.run(shots=1000) # g佩
print(r) # 燕幣
揖
じ
Circuit().z[1:3] # Z on 1,2
Circuit().x[:3] # X on (0, 1, 2)
Circuit().h[:] # H on all qubits
Circuit().x[1,2] # 1qubit gate
}方ビット荷恬
Circuit().rz(math.pi/4)[0] # Z rotate pi/4
ロ`テ`ション荷恬
玉い!
9LangEdge,Inc.
宴旋C嬬坤罐縫織衾仭弍輅
Matrix([
[0, 1],
[1, 0]])
from blueqat import *
Circuit().x[0].run(backend="sympy_unitary")
g佩Y惚x[0]

指揃}方ゲ`ト峺協してユニタリ佩双を燕幣
Matrix([
[1/sqrt(2), 1/sqrt(2)],
[1/sqrt(2), -sqrt(2)/2]])
from blueqat import *
Circuit().h[0].x[0].h[0].run(backend="sympy_unitary")
g佩Y惚┘▲瀬洫`ル h[0]
0 1
1 0
指揃┘咼奪鳩舘峺協してユニタリ佩双を燕幣
= =
Matrix([
[1, 0],
[0, -1]])
g佩Y惚HXHなのでZゲ`トと揖じ
=
1 0
0 1
}方ゲ`トでも
聞えるので宴旋。
燕Fが`うが、屎しい
LangEdge,Inc.
原h  鬫蹌┿云」
Gate Cirq Qiskit Blueqat
冴吉處麻 iden i
ビット郡處麻 X x x
了爛咼奪鳩舘處麻 Y y y
了犒舘處麻 Z z z
アダマ`ル處麻 H h h
了爛轡侫煩殍 S s s
了爛轡侫煩殍 T t t
? 了爛轡侫煩殍 inverse(S) sdg sdg
? 了爛轡侫煩殍 inverse(T) tdg tdg
y協 measure measure m, measure
崙囮郡處麻 CNOT cx cx, cnot
住Q處麻 SWAP swap swap
トフォリ處麻 CCX, TOFFOLI ccx ccx, toffoli
10
LangEdge,Inc.
原h  鬫蹌」
Gate Cirq Qiskit Blueqat
XS販吭指處麻 Rx rx rx
YS販吭指處麻 Ry ry ry
ZS販吭指處麻 Rz rz rz
崙囮了爛咼奪鳩舘處麻 cy
崙囮了犒舘處麻 CZ cz cz
トフォリ了犒舘處麻 CCZ ccz
崙囮住Q處麻 CSWAP cswap
峺協叔λ處麻 oい u1 u1
峺協叔φ,λ處麻  u2 u2
峺協叔θ,φ,λ處麻  u3 u3
崙囮峺協叔λ處麻  cu1 cu1
崙囮峺協叔φ,λ處麻  cu2 cu2
崙囮峺協叔θ,φ,λ處麻  cu3 cu3
楚徨コンピュ`タgC Google嚠協 IBM MDR嚠協
11
12
茶氏
の坪否
LangEdge,Inc.
Part 0 イントロダクション┘廛蹈踪`グ
Part 1 vB方僥と1楚徨ビット荷恬
1-1 侘旗方僥の児云岑R
1-2 ブラケット隈と楚徨麻
1-3 ブロッホ白と1楚徨ビット荷恬
1-4 IBM Q
Part 2坐迅咼鴬`ト侏のプログラミング
2-1 }方楚徨ビット荷恬
2-2 楚徨アルゴリズムの児云
2-3 ドイチェ アルゴリズム
2-3 グロ`バ`碧楚徨碧
2-4 楚徨フ`リエQ
2-5 ショアのアルゴリズム
2-6 エラ`屎}
2-7 Cirq Google?Blueqat MDR
13LangEdge,Inc.
さんきゅ?!
http://scienceinoh.jp/schrodinger/
Ad

Recommended

珂庄界姻看永霞岳鞄看稼の遺モジュ`ルを恬ってみる
珂庄界姻看永霞岳鞄看稼の遺モジュ`ルを恬ってみる
Kenta IDA
?
menta_lt
menta_lt
Tatsuya Yagi
?
‐Logic Apps。織離鵐芥`ディングでデキる,い栽わせフォ`ムC嬬
‐Logic Apps。織離鵐芥`ディングでデキる,い栽わせフォ`ムC嬬
灸徨 防云
?
Vision AI on Azure IoT Edge
Vision AI on Azure IoT Edge
Jingun Jung
?
ARコンテンツ恬撹茶氏のB初 (@EFC Fukuoka Waward Ceremony)
ARコンテンツ恬撹茶氏のB初 (@EFC Fukuoka Waward Ceremony)
Takashi Yoshinaga
?
Windows IoT Core and Robot Arm
Windows IoT Core and Robot Arm
Masuda Tomoaki
?
冱Z狼サ`ビスのy栽ポ`タル Language Studio で Microsoft AI を壅_J
冱Z狼サ`ビスのy栽ポ`タル Language Studio で Microsoft AI を壅_J
Yoshitaka Seo
?
硬灸プログラマ鬚荏迅咼廛蹈哀薀潺鵐鞍謇T [フル井]
硬灸プログラマ鬚荏迅咼廛蹈哀薀潺鵐鞍謇T [フル井]
OsSAL
?
2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
Artificial Intelligence, Data and Competition C SCHREPEL C June 2024 OECD dis...
Artificial Intelligence, Data and Competition C SCHREPEL C June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
?
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
2024 State of Marketing Report C by Hubspot
2024 State of Marketing Report C by Hubspot
Marius Sescu
?
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
?
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
?
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
?
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
?
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
?
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
?

More Related Content

Featured (20)

2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
Artificial Intelligence, Data and Competition C SCHREPEL C June 2024 OECD dis...
Artificial Intelligence, Data and Competition C SCHREPEL C June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
?
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
2024 State of Marketing Report C by Hubspot
2024 State of Marketing Report C by Hubspot
Marius Sescu
?
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
?
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
?
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
?
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
?
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
?
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
?
2024 Trend Updates: What Really Works In SEO & Content Marketing
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
?
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
?
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
?
2024 State of Marketing Report C by Hubspot
2024 State of Marketing Report C by Hubspot
Marius Sescu
?
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
?
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
?
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
?
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
?
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
?
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
?
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
?
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
?
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
?
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
?
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
?
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
?

プログラマの蕕料迅咼廛蹈哀薀潺鵐鞍謇T 傚