Skip to content

Commit

Permalink
update C++ layer
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Oct 15, 2024
1 parent 168b436 commit ab021b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class StateVectorCudaManaged
/* const int32_t * */ basisBits.data(),
/* const uint32_t nBasisBits */ basisBits.size()));

double norm = (branch == 0) ? abs2sum0 : abs2sum1;
double norm = branch ? abs2sum1 : abs2sum0;

const int parity = static_cast<int>(branch);

Expand Down

0 comments on commit ab021b7

Please sign in to comment.