#include <TrivialEmbeddingAlgorithm.hpp>
The EmbeddingAlgorithm class provides an interface for minor graph embedding algorithms.
xacc::quantum::TrivialEmbeddingAlgorithm::TrivialEmbeddingAlgorithm |
( |
| ) |
|
|
inline |
virtual xacc::quantum::TrivialEmbeddingAlgorithm::~TrivialEmbeddingAlgorithm |
( |
| ) |
|
|
inlinevirtual |
virtual const std::string xacc::quantum::TrivialEmbeddingAlgorithm::description |
( |
| ) |
const |
|
inlinevirtual |
Return the description of this instance
- Returns
- description The description of this object.
Implements xacc::Identifiable.
Embedding xacc::quantum::TrivialEmbeddingAlgorithm::embed |
( |
std::shared_ptr< Graph > |
problem, |
|
|
std::shared_ptr< Graph > |
hardware, |
|
|
std::map< std::string, std::string > |
params = std::map<std::string, std::string>() |
|
) |
| |
|
virtual |
Implementations of EmbeddingAlgorithm implement this method to provide a valid minor graph embedding of the given problem graph into the given hardware graph.
- Parameters
-
problem | The problem graph to be embedded into the hardware graph |
hardware | The hardware graph. |
params | Any key-value string parameters to influence the algorithm. |
- Returns
- embedding A mapping of problem vertex indices to the list of hardware vertices they map to
Implements xacc::quantum::EmbeddingAlgorithm.
virtual const std::string xacc::quantum::TrivialEmbeddingAlgorithm::name |
( |
| ) |
const |
|
inlinevirtual |
Return the name of this instance.
- Returns
- name The string name
Implements xacc::Identifiable.
The documentation for this class was generated from the following files:
- /home/cades/dev/xacc/quantum/annealing/compiler/default/TrivialEmbeddingAlgorithm.hpp
- /home/cades/dev/xacc/quantum/annealing/compiler/default/TrivialEmbeddingAlgorithm.cpp