-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
284 lines (239 loc) · 17.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!DOCTYPE html>
<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<title>OpenQASM Live Specification — OpenQASM Live Specification documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=d1102ebc" />
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=12dfc556" />
<link rel="stylesheet" type="text/css" href="_static/colors.css?v=3aae764c" />
<script src="_static/documentation_options.js?v=5929fcd5"></script>
<script src="_static/doctools.js?v=9a2dae69"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Introduction" href="intro.html" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
</head><body>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="openqasm-version-specification">
<h1>OpenQASM Live Specification<a class="headerlink" href="#openqasm-version-specification" title="Link to this heading">¶</a></h1>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a><ul>
<li class="toctree-l2"><a class="reference internal" href="intro.html#design-goals">Design Goals</a></li>
<li class="toctree-l2"><a class="reference internal" href="intro.html#scope">Scope</a></li>
<li class="toctree-l2"><a class="reference internal" href="intro.html#implementation-details">Implementation Details</a></li>
<li class="toctree-l2"><a class="reference internal" href="intro.html#contributors">Contributors</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="language/index.html">Language</a><ul>
<li class="toctree-l2"><a class="reference internal" href="language/comments.html">Comments</a></li>
<li class="toctree-l2"><a class="reference internal" href="language/comments.html#version-string">Version string</a></li>
<li class="toctree-l2"><a class="reference internal" href="language/comments.html#included-files">Included files</a></li>
<li class="toctree-l2"><a class="reference internal" href="language/types.html">Types and Casting</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#identifiers">Identifiers</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#variables">Variables</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#quantum-types">Quantum types</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#classical-scalar-types">Classical scalar types</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#compile-time-constants">Compile-time constants</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#literals">Literals</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#arrays">Arrays</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#types-related-to-timing">Types related to timing</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#aliasing">Aliasing</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#index-sets-and-slicing">Index sets and slicing</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#register-concatenation-and-slicing">Register concatenation and slicing</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#classical-value-bit-slicing">Classical value bit slicing</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#array-concatenation-and-slicing">Array concatenation and slicing</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/types.html#casting-specifics">Casting specifics</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/gates.html">Gates</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/gates.html#applying-gates">Applying gates</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/gates.html#defining-gates">Defining gates</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/gates.html#relation-of-the-built-in-gates-to-hardware-native-gates">Relation of the built-in gates to hardware-native gates</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/insts.html">Built-in quantum instructions</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/insts.html#initialization">Initialization</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/insts.html#measurement">Measurement</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/classical.html">Classical instructions</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/classical.html#low-level-classical-instructions">Low-level classical instructions</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/classical.html#looping-and-branching">Looping and branching</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/classical.html#the-switch-statement">The Switch statement</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/classical.html#extern-function-calls">Extern function calls</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/subroutines.html">Subroutines</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/subroutines.html#arrays-in-subroutines">Arrays in subroutines</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/scope.html">Scoping of variables</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/scope.html#global-scope">Global scope</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/scope.html#subroutine-and-gate-scope">Subroutine and gate scope</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/scope.html#block-scope">Block scope</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/directives.html">Directives</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/directives.html#pragmas">Pragmas</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/directives.html#annotations">Annotations</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/directives.html#input-output">Input/output</a></li>
<li class="toctree-l2"><a class="reference internal" href="language/standard_library.html">Standard library</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/standard_library.html#versioning">Versioning</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/standard_library.html#notes-for-implementations">Notes for implementations</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/standard_library.html#api-documentation">API Documentation</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/delays.html">Circuit timing</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/delays.html#duration-and-stretch-types">Duration and stretch types</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/delays.html#operations-on-durations">Operations on durations</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/delays.html#delays-and-other-duration-based-instructions">Delays (and other duration-based instructions)</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/delays.html#boxed-expressions">Boxed expressions</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/delays.html#barrier-instruction">Barrier instruction</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/pulses.html">Pulse-level descriptions of gates and measurement</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/pulses.html#inline-calibration-blocks">Inline calibration blocks</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/pulses.html#restrictions-on-defcal-bodies">Restrictions on defcal bodies</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/pulses.html#calibrations-in-practice">Calibrations in practice</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="language/openpulse.html">OpenPulse Grammar</a><ul>
<li class="toctree-l3"><a class="reference internal" href="language/openpulse.html#ports">Ports</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/openpulse.html#frames">Frames</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/openpulse.html#waveforms">Waveforms</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/openpulse.html#play-instruction">Play instruction</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/openpulse.html#capture-instruction">Capture Instruction</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/openpulse.html#timing">Timing</a></li>
<li class="toctree-l3"><a class="reference internal" href="language/openpulse.html#examples">Examples</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="grammar/index.html">OpenQasm 3.0 Grammar</a></li>
<li class="toctree-l1"><a class="reference internal" href="release_notes.html">Release Notes</a><ul>
<li class="toctree-l2"><a class="reference internal" href="release_notes.html#spec-v3-1-0-14">spec/v3.1.0-14</a><ul>
<li class="toctree-l3"><a class="reference internal" href="release_notes.html#new-features">New Features</a></li>
<li class="toctree-l3"><a class="reference internal" href="release_notes.html#upgrade-notes">Upgrade Notes</a></li>
<li class="toctree-l3"><a class="reference internal" href="release_notes.html#bug-fixes">Bug Fixes</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/openqasm/openqasm/">GitHub</a></li>
</ul>
</div>
</section>
<section id="bibliography">
<h1>Bibliography<a class="headerlink" href="#bibliography" title="Link to this heading">¶</a></h1>
<div class="docutils container" id="id1">
<div role="list" class="citation-list">
<div class="citation" id="id59" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>Exp<span class="fn-bracket">]</span></span>
<p>An experimental microarchitecture for a superconducting quantum processor | Proceedings of the 50th Annual IEEE/ACM International Symposium on Microarchitecture. https://dl.acm.org/doi/10.1145/3123939.3123952.</p>
</div>
<div class="citation" id="id62" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>Qui21<span class="fn-bracket">]</span></span>
<p>Quil-lang/quil. quil-lang, June 2021.</p>
</div>
<div class="citation" id="id58" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>DiC21<span class="fn-bracket">]</span></span>
<p>DiCarloLab-Delft/PycQED_py3. DiCarlo Lab, May 2021.</p>
</div>
<div class="citation" id="id57" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>AKE+20<span class="fn-bracket">]</span></span>
<p>Thomas Alexander, Naoki Kanazawa, Daniel J. Egger, Lauren Capelluto, Christopher J. Wood, Ali Javadi-Abhari, and David C. McKay. Qiskit pulse: programming quantum computers through the cloud with pulses. <em>Quantum Science and Technology</em>, 5(4):044006, August 2020. <a class="reference external" href="https://doi.org/10.1088/2058-9565/aba404">doi:10.1088/2058-9565/aba404</a>.</p>
</div>
<div class="citation" id="id45" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>BBC+95<span class="fn-bracket">]</span></span>
<p>A. Barenco, C. Bennett, R. Cleve, D. DiVincenzo, N. Margolus, P. Shor, T. Sleator, J. Smolin, and H. Weinfurter. Elementary gates for quantum computation. <em>Phys. Rev. A</em>, 1995.</p>
</div>
<div class="citation" id="id51" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>con22<span class="fn-bracket">]</span></span>
<p>Wikipedia contributors. Unicode character property, general category — Wikipedia, the free encyclopedia. 2022. [Online; accessed 14-December-2022]. URL: <a class="reference external" href="https://en.wikipedia.org/w/index.php?title=Unicode_character_property&oldid=1114571327#General_Category">https://en.wikipedia.org/w/index.php?title=Unicode_character_property&oldid=1114571327#General_Category</a>.</p>
</div>
<div class="citation" id="id50" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>KB84<span class="fn-bracket">]</span></span>
<p>Donald Ervin Knuth and Duane Bibby. <em>The texbook</em>. Volume 3. Addison-Wesley Reading, 1984.</p>
</div>
<div class="citation" id="id56" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>MaTAB+18<span class="fn-bracket">]</span></span>
<p>D.C. Mckay, and T. Alexander, L. Bello, M.J. Biercuk, L. Bishop, J. Chen, J.M. Chow, D.C. Antonio, D. Egger, S. Filipp, J. Gomez, M. Hush, A. Javadi-Abhari, D. Moreda, P. Nation, B. Paulovicks, E. Winston, C.J. Wood, J. Wootton, and J.M. Gambetta. Qiskit backend specifications for openqasm and openpulse experiments. <em>Arxiv</em>, 2018. <a class="reference external" href="https://arxiv.org/abs/1809.03452v1">arXiv:1809.03452v1</a>.</p>
</div>
<div class="citation" id="id61" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>NM20<span class="fn-bracket">]</span></span>
<p>Thien Nguyen and Alexander McCaskey. Enabling Pulse-level Programming, Compilation, and Execution in XACC. <em>arXiv:2003.11971 [physics, physics:quant-ph]</em>, March 2020. <a class="reference external" href="https://arxiv.org/abs/2003.11971">arXiv:2003.11971</a>.</p>
</div>
<div class="citation" id="id54" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>PMS+14<span class="fn-bracket">]</span></span>
<p>Alberto Peruzzo, Jarrod McClean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J. Love, Alán Aspuru-Guzik, and Jeremy L. O’Brien. A variational eigenvalue solver on a photonic quantum processor. <em>Nature Communications</em>, Jul 2014. URL: <a class="reference external" href="http://dx.doi.org/10.1038/ncomms5213">http://dx.doi.org/10.1038/ncomms5213</a>, <a class="reference external" href="https://doi.org/10.1038/ncomms5213">doi:10.1038/ncomms5213</a>.</p>
</div>
<div class="citation" id="id49" role="doc-biblioentry">
<span class="label"><span class="fn-bracket">[</span>Wil89<span class="fn-bracket">]</span></span>
<p>M. V. Wilkes. The best way to design an automatic calculating machine. In <em>The Early British Computer Conferences</em>, pages 182–184. MIT Press, Cambridge, MA, USA, May 1989.</p>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="#">OpenQASM Live Specification</a></h1>
<h3>Navigation</h3>
<ul>
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="language/index.html">Language</a></li>
<li class="toctree-l1"><a class="reference internal" href="grammar/index.html">OpenQasm 3.0 Grammar</a></li>
<li class="toctree-l1"><a class="reference internal" href="release_notes.html">Release Notes</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/openqasm/openqasm/">GitHub</a></li>
</ul>
<hr />
<ul>
<li class="toctree-l1"><a href="/index.html">Live Version</a></li>
<li class="toctree-l1"><a href="/versions/3.1/index.html">Version 3.1</a></li>
<li class="toctree-l1"><a href="/versions/3.0/index.html">Version 3.0</a></li>
<li class="toctree-l1"><a href="https://github.com/openqasm/openqasm/">GitHub</a></li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="#">Documentation overview</a><ul>
<li>Next: <a href="intro.html" title="next chapter">Introduction</a></li>
</ul></li>
</ul>
</div>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
©2017-2023, Andrew W. Cross, Lev S. Bishop, John A. Smolin, Jay M. Gambetta.
|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 7.3.7</a>
& <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>
|
<a href="_sources/index.rst.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>