From 9146116c6e210ec0016bbc566684df31f670e459 Mon Sep 17 00:00:00 2001 From: Purva Thakre Date: Fri, 13 Sep 2024 05:16:02 -0500 Subject: [PATCH] try chunking to 2 --- mitiq/lre/tests/test_lre.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mitiq/lre/tests/test_lre.py b/mitiq/lre/tests/test_lre.py index 71da9e00f..c1e4a819c 100644 --- a/mitiq/lre/tests/test_lre.py +++ b/mitiq/lre/tests/test_lre.py @@ -18,7 +18,6 @@ def execute(circuit, noise_level=0.025): """Default executor for all unit tests.""" - # Replace with code based on your frontend and backend. noisy_circuit = circuit.with_noise(depolarize(p=noise_level)) rho = DensityMatrixSimulator().simulate(noisy_circuit).final_density_matrix return rho[0, 0].real @@ -92,7 +91,7 @@ def test_lre_executor_with_chunking(): ideal_val = execute(test_cirq * 200, noise_level=0) assert abs(ideal_val - noisy_val) > 0 lre_exp_val = execute_with_lre( - test_cirq, execute, degree=2, fold_multiplier=2, num_chunks=5 + test_cirq, execute, degree=2, fold_multiplier=2, num_chunks=2 ) assert lre_exp_val > noisy_val