Skip to content

Commit 0ab2ea0

Browse files
committed
🐛 fixed minor bugs
1 parent 67d0197 commit 0ab2ea0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/hybridmap/HybridSynthesisMapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ std::vector<qc::fp> HybridSynthesisMapper::evaluateSynthesisSteps(
4444
if (parameters.verbose) {
4545
spdlog::info("Evaluating synthesis step number {}", qcIndex);
4646
}
47-
const auto fidelity = evaluateSynthesisStep(qc);
47+
const auto fidelity = evaluateSynthesisStep(qc, completeRemap);
4848
candidates.emplace_back(qc, fidelity);
4949
if (parameters.verbose) {
5050
spdlog::info("Fidelity: {}", fidelity);

test/hybridmap/test_hybrid_synthesis_map.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ TEST_P(TestParametrizedHybridSynthesisMapper, EvaluateSynthesisStep) {
7373
std::runtime_error);
7474
// Initializing with too many qubits to test error handling
7575
EXPECT_THROW(mapper.initMapping(50), std::runtime_error);
76-
const auto best = mapper.evaluateSynthesisSteps(circuits, true);
76+
const auto best = mapper.evaluateSynthesisSteps(
77+
circuits, GetParam().completeRemap, GetParam().alsoMap);
7778
EXPECT_EQ(best.size(), 2);
7879
EXPECT_GE(best[0], 0);
7980
EXPECT_GE(best[1], 0);

0 commit comments

Comments
 (0)