Skip to content

Commit

Permalink
fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
doichanj committed Dec 7, 2023
1 parent 80dee6b commit d01a21a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/controllers/aer_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,11 @@ Result Controller::execute(std::vector<std::shared_ptr<Circuit>> &circuits,
// set parallelization for experiments
try {
uint_t res_pos = 0;
for (uint i = 0; i < circuits.size(); i++) {
for (uint_t i = 0; i < circuits.size(); i++) {
executors[i] = make_circuit_executor(methods[i]);
required_memory_mb_list[i] =
executors[i]->required_memory_mb(config, *circuits[i], noise_model);
for (uint j = 0; j < circuits[i]->num_bind_params; j++) {
for (uint_t j = 0; j < circuits[i]->num_bind_params; j++) {
result.results[res_pos++].metadata.add(required_memory_mb_list[i],
"required_memory_mb");
}
Expand Down
2 changes: 1 addition & 1 deletion src/simulators/chunk_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void get_inout_ctrl_qubits(const Operations::Op &op, const uint_t num_qubits,
reg_t &qubits_in, reg_t &qubits_out) {
if (op.type == Operations::OpType::gate &&
(op.name[0] == 'c' || op.name.find("mc") == 0)) {
for (uint i = 0; i < op.qubits.size(); i++) {
for (uint_t i = 0; i < op.qubits.size(); i++) {
if (op.qubits[i] < num_qubits)
qubits_in.push_back(op.qubits[i]);
else
Expand Down

0 comments on commit d01a21a

Please sign in to comment.