Skip to content

Commit

Permalink
Put printing under "quiet" condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tomk10 committed Nov 20, 2024
1 parent 5fc31b9 commit 624f0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quizx/src/approximate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub fn two_qubit_basic_anneal(mut g: Graph, err_budget: f64, max_iter: usize, co
// Remove vertices that would exceed the error budget (rough upper bound)
vertex_list.retain(|&v| total_err + (round_error_dict[&v] * 1.5) <= err_budget);
if vertex_list.is_empty() {
println!("All gates would break error budget, nothing to squash.");
if !quiet {println!("All gates would break error budget, nothing to squash.");}
return g;
}
// Create probability list
Expand Down

0 comments on commit 624f0b9

Please # to comment.