Skip to content

Commit

Permalink
🔥 remove DDPackage-dependent methods from qfr_python target
Browse files Browse the repository at this point in the history
These have to be re-implemented in the corresponding package that uses them.

Signed-off-by: Lukas Burgholzer <lukas.burgholzer@jku.at>
  • Loading branch information
burgholzer committed Dec 27, 2022
1 parent a5bd4f7 commit 34c92e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions mqt/qfr/qiskit/QasmQobjExperiment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ namespace qc::qiskit {
qc.initializeIOMapping();
}

static void dumpTensorNetwork(const py::object& circ, const std::string& filename) {
QuantumComputation qc{};
import(qc, circ);
std::ofstream ofs(filename);
dd::dumpTensorNetwork(ofs, qc);
}

protected:
static void emplaceInstruction(QuantumComputation& qc, const py::object& instruction) {
static const auto NATIVELY_SUPPORTED_GATES = std::set<std::string>{"i", "id", "iden", "x", "y", "z", "h", "s", "sdg", "t", "tdg", "p", "u1", "rx", "ry", "rz", "u2", "u", "u3", "cx", "cy", "cz", "cp", "cu1", "ch", "crx", "cry", "crz", "cu3", "ccx", "swap", "cswap", "iswap", "sx", "sxdg", "csx", "mcx", "mcx_gray", "mcx_recursive", "mcx_vchain", "mcphase", "mcrx", "mcry", "mcrz"};
Expand Down
7 changes: 0 additions & 7 deletions mqt/qfr/qiskit/QuantumCircuit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,6 @@ namespace qc::qiskit {
qc.initializeIOMapping();
}

static void dumpTensorNetwork(const py::object& circ, const std::string& filename) {
QuantumComputation qc{};
import(qc, circ);
std::ofstream ofs(filename);
dd::dumpTensorNetwork(ofs, qc);
}

protected:
static void emplaceOperation(QuantumComputation& qc, const py::object& instruction, const py::list& qargs, const py::list& cargs, const py::list& params, const py::dict& qubitMap, const py::dict& clbitMap) {
static const auto NATIVELY_SUPPORTED_GATES = std::set<std::string>{"i", "id", "iden", "x", "y", "z", "h", "s", "sdg", "t", "tdg", "p", "u1", "rx", "ry", "rz", "u2", "u", "u3", "cx", "cy", "cz", "cp", "cu1", "ch", "crx", "cry", "crz", "cu3", "ccx", "swap", "cswap", "iswap", "sx", "sxdg", "csx", "mcx", "mcx_gray", "mcx_recursive", "mcx_vchain", "mcphase", "mcrx", "mcry", "mcrz"};
Expand Down

0 comments on commit 34c92e9

Please sign in to comment.