Skip to content

Commit

Permalink
Fix for Qiskit#2234
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanro committed Sep 18, 2024
1 parent 61a557f commit e3a3b29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controllers/state_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,9 @@ std::vector<double> AerState::probabilities() {
op.string_params.push_back("s");
op.save_type = Operations::DataSubType::list;

for (uint_t i = 0; i < num_of_qubits_; ++i)
op.qubits.push_back(i);

last_result_ = ExperimentResult();
state_->apply_op(op, last_result_, rng_);

Expand Down

0 comments on commit e3a3b29

Please sign in to comment.