Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
Expr.h File Reference
#include <math.h>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/fusion/include/io.hpp>
#include <boost/phoenix.hpp>
#include <boost/phoenix/object.hpp>
#include <boost/spirit/include/qi.hpp>
#include <algorithm>
#include <optional>
#include <string>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

class  qasm::AbstractSyntaxTree
class  qasm::Constant
struct  qasm::MakeConstantExpression
struct  qasm::MakeConstantExpression::result< typename >
class  qasm::Variable
struct  qasm::MakeVariableExpression
struct  qasm::MakeVariableExpression::result< typename >
class  qasm::BinaryOperator
struct  qasm::MakeBinaryExpression
struct  qasm::MakeBinaryExpression::result< typename, typename, typename >
class  qasm::UnaryOperator
struct  qasm::MakeUnaryExpression
struct  qasm::MakeUnaryExpression::result< typename, typename >
class  qasm::Function
struct  qasm::MakeFunctionExpression
struct  qasm::MakeFunctionExpression::result< typename, typename, typename >
class  qasm::Expression

Namespaces

namespace  qasm

Macros

#define _EXPR_H_
#define _USE_MATH_DEFINES

Typedefs

typedef std::shared_ptr< AbstractSyntaxTreeqasm::AbstractSyntaxTreePtr

Functions

template<typename Expr>
static AbstractSyntaxTreePtr qasm::Clone (Expr const &t)

Variables

phx::function< MakeConstantExpressionqasm::MakeConstant
phx::function< MakeVariableExpressionqasm::MakeVariable
phx::function< MakeBinaryExpressionqasm::MakeBinary
phx::function< MakeUnaryExpressionqasm::MakeUnary
phx::function< MakeFunctionExpressionqasm::MakeFunction

Detailed Description

Version
1.0

DESCRIPTION

Classes for the qasm parser and interpreter, expressions part.

It's supposed to support only open qasm 2.0.

Definition in file Expr.h.

Macro Definition Documentation

◆ _EXPR_H_

#define _EXPR_H_

Definition at line 14 of file Expr.h.

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 20 of file Expr.h.