We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a87ce commit 9a80fc4Copy full SHA for 9a80fc4
src/heuristic/HeuristicMapper.cpp
@@ -176,8 +176,11 @@ void HeuristicMapper::map(const Configuration& configuration) {
176
++loc;
177
}
178
locations.at(target) = static_cast<std::int16_t>(loc);
179
+ qubits.at(loc) = static_cast<std::int16_t>(target);
180
op->setTargets({static_cast<qc::Qubit>(loc)});
- qcMapped.initialLayout.at(target) = loc;
181
+ qcMapped.initialLayout.at(target) = loc;
182
+ qcMapped.outputPermutation[static_cast<qc::Qubit>(loc)] = target;
183
+ qcMapped.garbage.at(loc) = false;
184
} else {
185
op->setTargets({static_cast<qc::Qubit>(targetLocation)});
186
0 commit comments