Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Sep 22, 2023
1 parent 018717b commit cb3e786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pystaq/staq_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "transformations/inline.hpp"
#include "transformations/oracle_synthesizer.hpp"

#ifdef QASM_SYNTH
#ifdef EXPR_GMP
#include "transformations/qasm_synth.hpp"
#endif

Expand Down Expand Up @@ -143,7 +143,7 @@ class Program {
void synthesize_oracles() {
staq::transformations::synthesize_oracles(*prog_);
}
#ifdef QASM_SYNTH
#ifdef EXPR_GMP
void qasm_synth(long int prec, int factor_effort,
const std::string& read_tablefile,
const std::string& write_tablefile, bool check,
Expand Down Expand Up @@ -231,7 +231,7 @@ void rotation_fold(Program& prog, bool no_correction) {
void cnot_resynth(Program& prog) { prog.cnot_resynth(); }
void simplify(Program& prog, bool no_fixpoint) { prog.simplify(no_fixpoint); }
void synthesize_oracles(Program& prog) { prog.synthesize_oracles(); }
#ifdef QASM_SYNTH
#ifdef EXPR_GMP
void qasm_synth(Program& prog, long int prec, int factor_effort,
const std::string& read_tablefile,
const std::string& write_tablefile, bool check, bool details,
Expand Down Expand Up @@ -327,7 +327,7 @@ PYBIND11_MODULE(pystaq, m) {
py::arg("prog"), py::arg("no_fixpoint") = false);
m.def("synthesize_oracles", &synthesize_oracles,
"Synthesizes oracles declared by verilog files");
#ifdef QASM_SYNTH
#ifdef EXPR_GMP
m.def("qasm_synth", &qasm_synth,
"Replaces rx/ry/rz gates with grid_synth approximations",
py::arg("prog"), py::arg("prec"),
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def _load_shared_obj(name):
found_GMP = False

if found_GMP:
extra_compile_args.append("-DQASM_SYNTH")
extra_compile_args.append("-DEXPR_GMP")
extra_links_args = ["-lgmp", "-lgmpxx"]

Expand Down

0 comments on commit cb3e786

Please sign in to comment.