From d3063be0eef86a9b13fb1b764793372f8c9e51d3 Mon Sep 17 00:00:00 2001 From: Eliot A Heinrich Date: Wed, 8 Nov 2023 11:13:14 -0500 Subject: [PATCH] Fixed ugly cast --- .../extended_stabilizer/extended_stabilizer_state.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulators/extended_stabilizer/extended_stabilizer_state.hpp b/src/simulators/extended_stabilizer/extended_stabilizer_state.hpp index 083e2bf322..be6a8af609 100644 --- a/src/simulators/extended_stabilizer/extended_stabilizer_state.hpp +++ b/src/simulators/extended_stabilizer/extended_stabilizer_state.hpp @@ -466,7 +466,7 @@ void State::apply_ops_parallel(InputIterator first, InputIterator last, std::vector rng_seeds(NUM_STATES); for (int_t i = 0; i < NUM_STATES; i++) { - rng_seeds[i] = size_t(rng.rand_int(0ULL, 18446744073709551615ULL)); + rng_seeds[i] = rng.rand_int(0, SIZE_MAX); } #pragma omp parallel for if (BaseState::qreg_.check_omp_threshold() && \