Skip to content

Commit

Permalink
Revert "Revert "Suggested by Elara, ChatGPT (given options: variance,…
Browse files Browse the repository at this point in the history
… deviance, abs. res.)""

This reverts commit 22d92c1.
  • Loading branch information
WrathfulSpatula committed Aug 28, 2024
1 parent 22d92c1 commit b40c4e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qbdt/node_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ bool QBdtNodeInterface::isEqualBranch(QBdtNodeInterfacePtr r, const bool& b)

const real1 lWeight = ((real1)lLeaf.use_count()) * ((real1)lLeaf.use_count());
const real1 rWeight = ((real1)rLeaf.use_count()) * ((real1)rLeaf.use_count());
const complex_x nScale = ((real1_x)(lWeight / (lWeight + rWeight))) * lLeaf->scale +
((real1_x)(rWeight / (lWeight + rWeight))) * rLeaf->scale;
const complex_x nScale = ((real1_x)sqrt(lWeight / (lWeight + rWeight))) * lLeaf->scale +
((real1_x)sqrt(rWeight / (lWeight + rWeight))) * rLeaf->scale;

if (IS_NODE_0(nScale)) {
lLeaf->SetZero();
Expand Down

0 comments on commit b40c4e5

Please sign in to comment.