Skip to content

Commit

Permalink
[docs/benchmark_postproc] Removing pragma unroll bc GCC doesn't use t…
Browse files Browse the repository at this point in the history
…he same syntax as LLVM =(
  • Loading branch information
jamesETsmith committed Oct 4, 2024
1 parent 64eeef5 commit afa87ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion fast_pauli/cpp/include/__pauli_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ template <std::floating_point T, typename H = std::complex<T>> struct PauliOp
auto [cols, vals] = get_sparse_repr<T>(ps.paulis);
std::complex<T> c = coeffs[i];

#pragma unroll(16)
for (size_t j = 0; j < dim(); ++j)
{
output(j, cols[j]) += c * vals[j];
Expand Down
1 change: 0 additions & 1 deletion fast_pauli/cpp/include/__pauli_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ struct PauliString
// or serial version
auto [k, m] = get_sparse_repr<T>(paulis);

#pragma unroll(16)
for (size_t i = 0; i < k.size(); ++i)
output(i, k[i]) = m[i];
}
Expand Down

0 comments on commit afa87ba

Please sign in to comment.