Skip to content

Commit

Permalink
🚨 fix linter warning and test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
reb-ddm committed Jan 27, 2024
1 parent 0028102 commit 075d093
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/checker/dd/DDAlternatingChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion test/test_partial_equivalence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 075d093

Please sign in to comment.