Skip to content

Commit

Permalink
Removed some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanro committed Nov 14, 2024
1 parent 9932f24 commit d1dab5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions QCSim/Clifford.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ namespace QC {
size_t p;
if (IsRandomResult(qubit, p))
{
const size_t nPlusP = destabilizerGenerators.size() + p;
for (size_t q = 0; q < stabilizerGenerators.size(); ++q)
{
if (destabilizerGenerators[q].X[qubit])
Expand Down Expand Up @@ -703,7 +702,7 @@ namespace QC {
long long int mloc = 0;

#pragma omp parallel for reduction(+:mloc) num_threads(processor_count) schedule(static, 256)
for (long long int q = 0; q < destabilizerGenerators.size(); ++q)
for (long long int q = 0; q < static_cast<long long int>(destabilizerGenerators.size()); ++q)
{
const int x1 = j.X[q] ? 1 : 0;
const int z1 = j.Z[q] ? 1 : 0;
Expand All @@ -725,7 +724,7 @@ namespace QC {

if (stabilizerGenerators.size() < 1024)
{
for (size_t q = 0; q < stabilizerGenerators.size(); ++q)
for (size_t q = 0; q < static_cast<long long int>(stabilizerGenerators.size()); ++q)
{
const int x1 = j.X[q] ? 1 : 0;
const int z1 = j.Z[q] ? 1 : 0;
Expand Down

0 comments on commit d1dab5f

Please sign in to comment.