Skip to content

Commit

Permalink
Missing TKET_ASSERTs from reviewer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
willsimmons1465 committed Nov 6, 2023
1 parent 6202371 commit cba457c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tket/src/Diagonalisation/Diagonalisation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ std::pair<Circuit, std::optional<Qubit>> reduce_overlap_of_paulis(
u.add_op<Qubit>(OpType::H, {qb});
break;
default:
TKET_ASSERT(false);
break; // Cannot hit this case
}
break;
Expand All @@ -608,6 +609,7 @@ std::pair<Circuit, std::optional<Qubit>> reduce_overlap_of_paulis(
u.add_op<Qubit>(OpType::S, {qb});
break;
default:
TKET_ASSERT(false);
break; // Cannot hit this case
}
break;
Expand Down

0 comments on commit cba457c

Please sign in to comment.