Skip to content

Stmts

Add

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Add[Add]

              

              click bloqade.qasm3.dialects.expr.stmts.Add href "" "bloqade.qasm3.dialects.expr.stmts.Add"
            

Add two numbers.

BitNot

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.BitNot[BitNot]

              

              click bloqade.qasm3.dialects.expr.stmts.BitNot href "" "bloqade.qasm3.dialects.expr.stmts.BitNot"
            

Bitwise NOT of an integer.

ConstBool

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.ConstBool[ConstBool]

              

              click bloqade.qasm3.dialects.expr.stmts.ConstBool href "" "bloqade.qasm3.dialects.expr.stmts.ConstBool"
            

IR Statement representing a constant boolean value.

ConstComplex

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.ConstComplex[ConstComplex]

              

              click bloqade.qasm3.dialects.expr.stmts.ConstComplex href "" "bloqade.qasm3.dialects.expr.stmts.ConstComplex"
            

IR Statement representing a constant complex value.

ConstFloat

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.ConstFloat[ConstFloat]

              

              click bloqade.qasm3.dialects.expr.stmts.ConstFloat href "" "bloqade.qasm3.dialects.expr.stmts.ConstFloat"
            

IR Statement representing a constant float value.

ConstInt

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.ConstInt[ConstInt]

              

              click bloqade.qasm3.dialects.expr.stmts.ConstInt href "" "bloqade.qasm3.dialects.expr.stmts.ConstInt"
            

IR Statement representing a constant integer value.

ConstPI

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.ConstPI[ConstPI]

              

              click bloqade.qasm3.dialects.expr.stmts.ConstPI href "" "bloqade.qasm3.dialects.expr.stmts.ConstPI"
            

The constant value of PI.

Cos

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Cos[Cos]

              

              click bloqade.qasm3.dialects.expr.stmts.Cos href "" "bloqade.qasm3.dialects.expr.stmts.Cos"
            

Take the cosine of a number.

Div

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Div[Div]

              

              click bloqade.qasm3.dialects.expr.stmts.Div href "" "bloqade.qasm3.dialects.expr.stmts.Div"
            

Divide two numbers.

Exp

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Exp[Exp]

              

              click bloqade.qasm3.dialects.expr.stmts.Exp href "" "bloqade.qasm3.dialects.expr.stmts.Exp"
            

Take the exponential of a number.

GateFunction

Bases: Function


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.GateFunction[GateFunction]

              

              click bloqade.qasm3.dialects.expr.stmts.GateFunction href "" "bloqade.qasm3.dialects.expr.stmts.GateFunction"
            

Special Function for qasm3 gate subroutine.

Log

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Log[Log]

              

              click bloqade.qasm3.dialects.expr.stmts.Log href "" "bloqade.qasm3.dialects.expr.stmts.Log"
            

Take the natural log of a number.

Mod

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Mod[Mod]

              

              click bloqade.qasm3.dialects.expr.stmts.Mod href "" "bloqade.qasm3.dialects.expr.stmts.Mod"
            

Modulo of two numbers.

Mul

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Mul[Mul]

              

              click bloqade.qasm3.dialects.expr.stmts.Mul href "" "bloqade.qasm3.dialects.expr.stmts.Mul"
            

Multiply two numbers.

Neg

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Neg[Neg]

              

              click bloqade.qasm3.dialects.expr.stmts.Neg href "" "bloqade.qasm3.dialects.expr.stmts.Neg"
            

Negate a number.

Pow

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Pow[Pow]

              

              click bloqade.qasm3.dialects.expr.stmts.Pow href "" "bloqade.qasm3.dialects.expr.stmts.Pow"
            

Take the power of a number.

Sin

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Sin[Sin]

              

              click bloqade.qasm3.dialects.expr.stmts.Sin href "" "bloqade.qasm3.dialects.expr.stmts.Sin"
            

Take the sine of a number.

Sqrt

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Sqrt[Sqrt]

              

              click bloqade.qasm3.dialects.expr.stmts.Sqrt href "" "bloqade.qasm3.dialects.expr.stmts.Sqrt"
            

Take the square root of a number.

Sub

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Sub[Sub]

              

              click bloqade.qasm3.dialects.expr.stmts.Sub href "" "bloqade.qasm3.dialects.expr.stmts.Sub"
            

Subtract two numbers.

Tan

Bases: Statement


              flowchart TD
              bloqade.qasm3.dialects.expr.stmts.Tan[Tan]

              

              click bloqade.qasm3.dialects.expr.stmts.Tan href "" "bloqade.qasm3.dialects.expr.stmts.Tan"
            

Take the tangent of a number.