ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
HybridEvaluator.cpp File Reference

Implementation of the peephole simplifier. More...

#include "HybridEvaluator.h"
#include <array>
#include <charconv>
#include <cmath>
#include <iomanip>
#include <limits>
#include <optional>
#include <sstream>
#include <stack>
#include <string>
#include <system_error>
#include <unordered_set>
#include <utility>
#include <vector>
#include "Aggregation.h"
#include "AnalyticEvaluator.h"
#include "Expectation.h"
#include "MonteCarloSampler.h"
#include "RandomVariable.h"
#include "provsql_utils.h"
#include <algorithm>
Include dependency graph for HybridEvaluator.cpp:

Go to the source code of this file.

Namespaces

namespace  provsql

Functions

unsigned provsql::runConstantFold (GenericCircuit &gc)
 Constant-fold pass over every gate_arith in gc.
unsigned provsql::runHybridSimplifier (GenericCircuit &gc)
 Run the peephole simplifier over gc.
unsigned provsql::runHybridDecomposer (GenericCircuit &gc, unsigned samples)
 Marginalise unresolved continuous-island gate_cmp gates into Bernoulli gate_input leaves.

Detailed Description

Implementation of the peephole simplifier.

See HybridEvaluator.h for the full docstring.

Definition in file HybridEvaluator.cpp.