<s>
Open	O
Quantum	O
Assembly	O
Language	O
(	O
OpenQASM	B-Device
;	O
pronounced	O
open	O
kazm	O
)	O
is	O
a	O
programming	O
language	O
designed	O
for	O
describing	O
quantum	O
circuits	O
and	O
algorithms	O
for	O
execution	O
on	O
quantum	O
computers	O
.	O
</s>
<s>
It	O
is	O
designed	O
to	O
be	O
an	O
intermediate	B-Application
representation	I-Application
that	O
can	O
be	O
used	O
by	O
higher-level	O
compilers	O
to	O
communicate	O
with	O
quantum	O
hardware	O
,	O
and	O
allows	O
for	O
the	O
description	O
of	O
a	O
wide	O
range	O
of	O
quantum	O
operations	O
,	O
as	O
well	O
as	O
classical	O
feed-forward	O
flow	O
control	O
based	O
on	O
measurement	O
outcomes	O
.	O
</s>
<s>
OpenQASM	B-Device
is	O
not	O
intended	O
for	O
general-purpose	O
classical	O
computation	O
,	O
and	O
hardware	O
implementations	O
of	O
the	O
language	O
may	O
not	O
support	O
the	O
full	O
range	O
of	O
data	O
manipulation	O
described	O
in	O
the	O
specification	O
.	O
</s>
<s>
Compilers	O
for	O
OpenQASM	B-Device
are	O
expected	O
to	O
support	O
a	O
wide	O
range	O
of	O
classical	O
operations	O
for	O
compile-time	O
constants	O
,	O
but	O
the	O
support	O
for	O
these	O
operations	O
on	O
runtime	O
values	O
may	O
vary	O
between	O
implementations	O
.	O
</s>
<s>
The	O
language	O
was	O
first	O
described	O
in	O
a	O
paper	O
published	O
in	O
July	O
2017	O
,	O
and	O
a	O
reference	O
source	O
code	O
implementation	O
was	O
released	O
as	O
part	O
of	O
IBM	O
's	O
Quantum	O
Information	O
Software	O
Kit	O
(	O
Qiskit	B-Device
)	O
for	O
use	O
with	O
their	O
IBM	B-Device
Quantum	I-Device
Experience	I-Device
cloud	B-General_Concept
quantum	I-General_Concept
computing	I-General_Concept
platform	O
.	O
</s>
<s>
The	O
language	O
has	O
similar	O
qualities	O
to	O
traditional	O
hardware	O
description	O
languages	O
such	O
as	O
Verilog	B-Language
.	O
</s>
<s>
OpenQASM	B-Device
defines	O
its	O
version	O
at	O
the	O
head	O
of	O
a	O
source	O
file	O
as	O
a	O
number	O
,	O
as	O
in	O
the	O
declaration	O
:	O
</s>
<s>
The	O
level	O
of	O
OpenQASM	B-Device
's	O
original	O
published	O
implementations	O
is	O
OpenQASM	B-Device
2.0	O
.	O
</s>
<s>
Version	O
3.0	O
of	O
the	O
specification	O
is	O
the	O
current	O
one	O
and	O
can	O
be	O
viewed	O
at	O
the	O
repository	O
on	O
GitHub	B-Application
.	O
</s>
<s>
The	O
following	O
is	O
an	O
example	O
of	O
OpenQASM	B-Device
source	O
code	O
from	O
the	O
official	O
library	O
.	O
</s>
