diff --git a/src/controllers/aer_controller.hpp b/src/controllers/aer_controller.hpp index dd85e7774f..14e8e986d6 100644 --- a/src/controllers/aer_controller.hpp +++ b/src/controllers/aer_controller.hpp @@ -982,7 +982,7 @@ Result Controller::execute(std::vector> &circuits, reg_t avg_seeds(circuits.size()); for (int_t i = 0; i < circuits.size(); i++) seeds[i] = circuits[i]->seed; - MPI_Allreduce(seeds.data(), avg_seeds.data(), circuits->size(), + MPI_Allreduce(seeds.data(), avg_seeds.data(), circuits.size(), MPI_UINT64_T, MPI_SUM, MPI_COMM_WORLD); for (int_t i = 0; i < circuits.size(); i++) circuits[i]->seed = avg_seeds[i] / num_processes_;