Skip to content

Commit

Permalink
shor example update
Browse files Browse the repository at this point in the history
  • Loading branch information
meandmytram committed Dec 18, 2024
1 parent d01a640 commit 23ca4a3
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions examples/decoding/shor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
],
Expand Down Expand Up @@ -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]"
Expand All @@ -475,7 +482,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"324it [00:04, 74.09it/s]\n"
"324it [00:04, 71.60it/s]\n"
]
}
],
Expand All @@ -496,7 +503,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"2268it [00:31, 70.93it/s]\n"
"2268it [00:32, 68.75it/s]\n"
]
}
],
Expand Down

0 comments on commit 23ca4a3

Please sign in to comment.