From 624f0b9dd94c3ddc202a3a9acbebf1586646e000 Mon Sep 17 00:00:00 2001 From: tomk10 Date: Wed, 20 Nov 2024 11:15:50 +0000 Subject: [PATCH] Put printing under "quiet" condition --- quizx/src/approximate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quizx/src/approximate.rs b/quizx/src/approximate.rs index c13a1a2..70bdb42 100644 --- a/quizx/src/approximate.rs +++ b/quizx/src/approximate.rs @@ -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