Skip to content

Tutorials on digital circuits

In this section you will find a number of tutorials that show how you can use the digital bloqade subpackage, bloqade-circuit, in order to write quantum programs. The tutorials are split into sub-sections featuring the different dialects and submodules.

Squin

Squin is bloqade-circuits central dialect used to build circuits and run them on simulators and hardware.

Interoperability with other SDKs

While bloqade-circuit provides a number of different dialects (eDSLs), it may also be convenient to transpile circuits written using other SDKs.

QASM2

One of the most central languages used to define quantum programs is QASM2. You can also write your quantum programs using the QASM2 dialect directly in bloqade-circuit.

Warning

Some of the examples below use the qasm2.extended dialect, which adds more advanced language features, such as control flow. However, this dialect is deprecated and we recommend using squin instead.