Symbolic.Expr
Manipulation of symbolic expressions.
type t =
| Bop of Qasm.binaryop * t * t
| Uop of Qasm.unaryop * t
| Cst of int
| Pi
| I
| Var of Symbol.t
| CustomSymbol of Stdlib.String.t
Type of symbolic expressions.
val cstring_of_binary : Qasm.binaryop -> string
Returns a C template-compatible string of a binary operation.
val cstring_of_unary : Qasm.unaryop -> string
Returns a C template-compatible string of a unary operation.
val repr : t -> Stdlib.String.t
Returns a string representation of the expression.