Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions pybind_interface/pybind_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ std::vector<std::complex<float>> qsim_simulate(const py::dict &options) {
circuit = getCircuit(options);
bitstrings = getBitstrings(options, circuit.num_qubits);
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand Down Expand Up @@ -414,7 +414,7 @@ std::vector<std::complex<float>> qsim_simulate(const py::dict &options) {
param.verbosity = parseOptions<unsigned>(options, "v\0");
param.seed = parseOptions<unsigned>(options, "s\0");
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand All @@ -439,7 +439,7 @@ std::vector<std::complex<float>> qtrajectory_simulate(const py::dict &options) {
num_qubits = ncircuit.num_qubits;
bitstrings = getBitstrings(options, num_qubits);
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand Down Expand Up @@ -478,7 +478,7 @@ std::vector<std::complex<float>> qtrajectory_simulate(const py::dict &options) {
param.verbosity = parseOptions<unsigned>(options, "v\0");
seed = parseOptions<unsigned>(options, "s\0");
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand Down Expand Up @@ -687,7 +687,7 @@ class SimulatorHelper {
}
} catch (const std::invalid_argument &exp) {
// If this triggers, is_valid is false.
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
}
}

Expand Down Expand Up @@ -976,7 +976,7 @@ std::vector<unsigned> qsim_sample(const py::dict &options) {
try {
circuit = getCircuit(options);
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand Down Expand Up @@ -1008,7 +1008,7 @@ std::vector<unsigned> qsim_sample(const py::dict &options) {
param.verbosity = parseOptions<unsigned>(options, "v\0");
param.seed = parseOptions<unsigned>(options, "s\0");
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand Down Expand Up @@ -1042,7 +1042,7 @@ std::vector<unsigned> qtrajectory_sample(const py::dict &options) {
try {
ncircuit = getNoisyCircuit(options);
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand Down Expand Up @@ -1077,7 +1077,7 @@ std::vector<unsigned> qtrajectory_sample(const py::dict &options) {
seed = parseOptions<unsigned>(options, "s\0");
param.collect_mea_stat = true;
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand Down Expand Up @@ -1152,7 +1152,7 @@ std::vector<std::complex<float>> qsimh_simulate(const py::dict &options) {
param.max_fused_size = parseOptions<unsigned>(options, "f\0");
param.verbosity = parseOptions<unsigned>(options, "v\0");
} catch (const std::invalid_argument &exp) {
IO::errorf(exp.what());
IO::errorf("%s", exp.what());
return {};
}

Expand Down
Loading