Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Gringauze <[email protected]>
  • Loading branch information
annagrin committed Jan 30, 2025
1 parent 259e825 commit b25e335
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libs/solvers/lib/stateprep/uccsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,16 +532,16 @@ __qpu__ void uccsd(cudaq::qview<> qubits, const std::vector<double> &thetas,

counter = 0;
for (int p = 0; p < numOccBeta - 1; p++)
for (int q = p + 1; q < numOccBeta; q++)
for (int r = 0; r < numVirtBeta - 1; r++)
for (int s = r + 1; s < numVirtBeta; s++)
for (int q = p + 1; q < numOccBeta; q++)
for (int r = 0; r < numVirtBeta - 1; r++)
for (int s = r + 1; s < numVirtBeta; s++)
counter++;
std::vector<std::size_t> doublesBeta(4 * counter);
counter = 0;
for (int p = 0; p < numOccBeta - 1; p++)
for (int q = p + 1; q < numOccBeta; q++)
for (int r = 0; r < numVirtBeta - 1; r++)
for (int s = r + 1; s < numVirtBeta; s++) {
for (int q = p + 1; q < numOccBeta; q++)
for (int r = 0; r < numVirtBeta - 1; r++)
for (int s = r + 1; s < numVirtBeta; s++) {
doublesBeta[counter] = occupiedBeta[p];
counter++;
doublesBeta[counter] = occupiedBeta[q];
Expand Down

0 comments on commit b25e335

Please sign in to comment.