Skip to content

Commit

Permalink
🔥 remove assertions
Browse files Browse the repository at this point in the history
Signed-off-by: burgholzer <[email protected]>
  • Loading branch information
burgholzer committed Sep 14, 2023
1 parent a74e4b1 commit ede7845
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/dd/Package.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1578,11 +1578,9 @@ template <class Config> class Package {

Qubit var{};
if (!x.isTerminal()) {
assert(x.p != nullptr);
var = x.p->v;
}
if (!y.isTerminal() && (y.p->v) > var) {
assert(y.p != nullptr);
var = y.p->v;
}

Expand Down Expand Up @@ -1628,11 +1626,6 @@ template <class Config> class Package {
constexpr std::size_t n = std::tuple_size_v<decltype(x.p->e)>;
std::array<Edge<Node>, n> edge{};
for (std::size_t i = 0U; i < n; i++) {
if constexpr (std::is_same_v<Node, vNode>) {
assert(!x.isTerminal() && "x must not be terminal");
assert(!y.isTerminal() && "y must not be terminal");
assert(x.p->v == y.p->v && "x and y must be at the same level");
}
Edge<Node> e1{};
if (!x.isTerminal()) {
e1 = x.p->e[i];
Expand Down

0 comments on commit ede7845

Please sign in to comment.