package openQASM

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type id = string
type ty =
  1. | TVal
  2. | TCReg of int
  3. | TQReg of int
  4. | TGate of int * int
type binaryop =
  1. | Plus
  2. | Minus
  3. | Times
  4. | Div
  5. | Pow
type unaryop =
  1. | Sin
  2. | Cos
  3. | Tan
  4. | Exp
  5. | Ln
  6. | Sqrt
  7. | UMinus
type exp =
  1. | Real of float
  2. | Nninteger of int
  3. | Pi
  4. | Id of id
  5. | BinaryOp of binaryop * exp * exp
  6. | UnaryOp of unaryop * exp
type argument = id * int option
type uop =
  1. | CX of argument * argument
  2. | U of exp list * argument
  3. | Gate of id * exp list * argument list
type qop =
  1. | Uop of uop
  2. | Meas of argument * argument
  3. | Reset of argument
type gop =
  1. | GUop of uop
  2. | GBarrier of id list
type gatedecl = id * id list * id list
type decl =
  1. | QReg of id * int
  2. | CReg of id * int
type statement =
  1. | Include of string
  2. | Decl of decl
  3. | GateDecl of gatedecl * gop list
  4. | OpaqueDecl of gatedecl
  5. | Qop of qop
  6. | If of id * int * qop
  7. | Barrier of argument list
type program = statement list