Skip to content

Commit

Permalink
Bump extern/cxxopts from a526762 to c8c932f (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jul 4, 2023
1 parent 494b607 commit a81b051
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/noise_aware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int main(int argc, char** argv) { // NOLINT(bugprone-exception-escape)
// Parameters for noise aware simulation
("noise_effects", "Noise effects (A (=amplitude damping),D (=depolarization),P (=phase flip)) in the form of a character string describing the noise effects", cxxopts::value<std::string>()->default_value("APD"))
("noise_prob", "Probability for applying noise.", cxxopts::value<double>()->default_value("0.001"))
("noise_prob_t1", "Probability for applying amplitude damping noise (default:2 x noise_prob)", cxxopts::value<std::optional<double>>())
("noise_prob_t1", "Probability for applying amplitude damping noise (default:2 x noise_prob)", cxxopts::value<double>())
("noise_prob_multi", "Noise factor for multi qubit operations", cxxopts::value<double>()->default_value("2"))
("unoptimized_sim", "Use unoptimized scheme for stochastic/deterministic noise-aware simulation")
("stoch_runs", "Number of stochastic runs. When the value is 0, the deterministic simulator is started. ", cxxopts::value<std::size_t>()->default_value("0"))
Expand Down Expand Up @@ -59,7 +59,7 @@ int main(int argc, char** argv) { // NOLINT(bugprone-exception-escape)

std::optional<double> noiseProbT1{};
if (vm.count("noise_prob_t1") > 0) {
noiseProbT1 = vm["noise_prob_t1"].as<std::optional<double>>();
noiseProbT1 = vm["noise_prob_t1"].as<double>();
}

if (vm["stoch_runs"].as<std::size_t>() > 0) {
Expand Down
2 changes: 1 addition & 1 deletion extern/cxxopts

0 comments on commit a81b051

Please sign in to comment.