Skip to content

Commit

Permalink
Minor style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Nov 2, 2024
1 parent 399e28b commit e9fcdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qengine/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void QEngineCPU::SetPermutation(const bitCapInt& perm, const complex& phaseFac)
if (phaseFac == CMPLX_DEFAULT_ARG) {
complex phase;
if (randGlobalPhase) {
real1_f angle = Rand() * 2 * (real1_f)PI_R1;
const real1_f angle = Rand() * 2 * (real1_f)PI_R1;
phase = complex((real1)cos(angle), (real1)sin(angle));
} else {
phase = ONE_CMPLX;
Expand Down

0 comments on commit e9fcdd0

Please sign in to comment.