13 #ifndef QUANTUM_GATE_COMPILER_DEFAULT_PLACEMENT_HPP_ 14 #define QUANTUM_GATE_COMPILER_DEFAULT_PLACEMENT_HPP_ 16 #include "IRTransformation.hpp" 24 void apply(std::shared_ptr<CompositeInstruction> program,
25 const std::shared_ptr<Accelerator> accelerator,
27 if (options.keyExists<std::vector<int>>(
"qubit-map")) {
28 auto map = options.get<std::vector<int>>(
"qubit-map");
29 std::vector<std::size_t> tmp;
30 for (
auto& m : map) tmp.push_back(m);
31 program->mapBits(tmp);
35 const IRTransformationType type()
const override {
return IRTransformationType::Placement;}
37 const std::string
name()
const override {
return "default-placement"; }
Definition: Accelerator.hpp:25
const std::string description() const override
Definition: default_placement.hpp:38
Definition: heterogeneous.hpp:45
Definition: default_placement.hpp:20
const std::string name() const override
Definition: default_placement.hpp:37