diff --git a/src/checker/dd/DDAlternatingChecker.cpp b/src/checker/dd/DDAlternatingChecker.cpp index 8b769e13..156c5873 100644 --- a/src/checker/dd/DDAlternatingChecker.cpp +++ b/src/checker/dd/DDAlternatingChecker.cpp @@ -105,7 +105,7 @@ EquivalenceCriterion DDAlternatingChecker::checkEquivalence() { // if partial equivalence is being checked instead of total equivalence, it // suffices to change the last parameter of isCloseToIdentity to `false` - bool isClose = dd->isCloseToIdentity( + const bool isClose = dd->isCloseToIdentity( functionality, configuration.functionality.traceThreshold, garbage, true); if (isClose) { diff --git a/test/test_partial_equivalence.cpp b/test/test_partial_equivalence.cpp index ac283e90..82e4cdd7 100644 --- a/test/test_partial_equivalence.cpp +++ b/test/test_partial_equivalence.cpp @@ -101,7 +101,6 @@ TEST_F(PartialEqualityTest, AlternatingCheckerGarbageAndAncillary) { qc1.cx(2, 0); qc::QuantumComputation qc3(nqubits - 1); - qc3.setLogicalQubitGarbage(2); qc3.setLogicalQubitGarbage(1); qc3.h(0);