From 23ca4a3c5fb60949b3a46801be1711c0aea567e3 Mon Sep 17 00:00:00 2001 From: meandmytram Date: Tue, 17 Dec 2024 20:41:04 -0500 Subject: [PATCH] shor example update --- examples/decoding/shor.ipynb | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/examples/decoding/shor.ipynb b/examples/decoding/shor.ipynb index 8608148..cc7cc70 100644 --- a/examples/decoding/shor.ipynb +++ b/examples/decoding/shor.ipynb @@ -351,10 +351,10 @@ "name": "stderr", "output_type": "stream", "text": [ - "100%|██████████| 2/2 [00:00<00:00, 196.19it/s]\n", - "100%|██████████| 6/6 [00:00<00:00, 547.94it/s]\n", - "100%|██████████| 1/1 [00:00<00:00, 181.89it/s]\n", - "100%|██████████| 1/1 [00:00<00:00, 132.59it/s]\n" + "100%|██████████| 2/2 [00:00<00:00, 194.04it/s]\n", + "100%|██████████| 6/6 [00:00<00:00, 506.47it/s]\n", + "100%|██████████| 1/1 [00:00<00:00, 157.70it/s]\n", + "100%|██████████| 1/1 [00:00<00:00, 123.62it/s]\n" ] } ], @@ -454,13 +454,20 @@ "text": [ "0it [00:00, ?it/s]/Users/aleksandrberezutskii/mdopt/mdopt/mps/canonical.py:274: RuntimeWarning: invalid value encountered in divide\n", " dense /= np.linalg.norm(dense, ord=norm)\n", - "27it [00:00, 61.83it/s]\n" + "27it [00:00, 57.28it/s]\n" ] } ], "source": [ "one_qubit_outputs = [\n", - " decode_css(code, error, bias_type=\"Bitflip\", renormalise=renormalise, silent=True, bias_prob=0)\n", + " decode_css(\n", + " code,\n", + " error,\n", + " bias_type=\"Bitflip\",\n", + " renormalise=renormalise,\n", + " silent=True,\n", + " bias_prob=0,\n", + " )\n", " for error in tqdm(one_qubit_paulis)\n", "]\n", "one_qubit_corrections_distribution = [output[0] for output in one_qubit_outputs]" @@ -475,7 +482,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "324it [00:04, 74.09it/s]\n" + "324it [00:04, 71.60it/s]\n" ] } ], @@ -496,7 +503,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "2268it [00:31, 70.93it/s]\n" + "2268it [00:32, 68.75it/s]\n" ] } ],