Skip to content

Commit

Permalink
Re-run notebooks to refresh outputs (#1396)
Browse files Browse the repository at this point in the history
Refreshes notebook outputs with the latest package versions so outputs
match user expectations.

Same as #1391 but run locally for notebooks that don't submit jobs.
  • Loading branch information
frankharkins authored May 16, 2024
1 parent e138414 commit 37ab796
Show file tree
Hide file tree
Showing 15 changed files with 96 additions and 177 deletions.
2 changes: 1 addition & 1 deletion docs/build/circuit-library.ipynb

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions docs/run/get-backend-information.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
{
"data": {
"text/plain": [
"[<IBMBackend('simulator_statevector')>,\n",
" <IBMBackend('ibm_kyoto')>,\n",
"[<IBMBackend('simulator_stabilizer')>,\n",
" <IBMBackend('ibm_osaka')>,\n",
" <IBMBackend('ibm_sherbrooke')>,\n",
" <IBMBackend('simulator_mps')>,\n",
" <IBMBackend('ibmq_qasm_simulator')>,\n",
" <IBMBackend('simulator_extended_stabilizer')>,\n",
" <IBMBackend('simulator_stabilizer')>,\n",
" <IBMBackend('simulator_mps')>,\n",
" <IBMBackend('simulator_statevector')>,\n",
" <IBMBackend('ibm_brisbane')>,\n",
" <IBMBackend('ibm_osaka')>,\n",
" <IBMBackend('ibmq_qasm_simulator')>]"
" <IBMBackend('ibm_kyoto')>]"
]
},
"execution_count": 1,
Expand Down Expand Up @@ -107,10 +107,10 @@
{
"data": {
"text/plain": [
"[<IBMBackend('ibm_kyoto')>,\n",
"[<IBMBackend('ibm_osaka')>,\n",
" <IBMBackend('ibm_sherbrooke')>,\n",
" <IBMBackend('ibm_brisbane')>,\n",
" <IBMBackend('ibm_osaka')>]"
" <IBMBackend('ibm_kyoto')>]"
]
},
"execution_count": 3,
Expand Down Expand Up @@ -139,7 +139,7 @@
{
"data": {
"text/plain": [
"<IBMBackend('simulator_statevector')>"
"<IBMBackend('simulator_stabilizer')>"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -222,7 +222,7 @@
{
"data": {
"text/plain": [
"IBMQubitProperties(t1=0.00022166953697436856, t2=2.71364838264149e-05, frequency=4908399363.66221, anharmonicity=-308028796.19250304)"
"IBMQubitProperties(t1=0.0001998083920593155, t2=3.782815390372979e-05, frequency=4908334723.934911, anharmonicity=-308028796.19250304)"
]
},
"execution_count": 6,
Expand Down Expand Up @@ -253,7 +253,7 @@
{
"data": {
"text/plain": [
"InstructionProperties(duration=6.6e-07, error=0.02131754555943946, calibration=Schedule ecr)"
"InstructionProperties(duration=6.6e-07, error=0.02010089064512202, calibration=Schedule ecr)"
]
},
"execution_count": 7,
Expand Down Expand Up @@ -282,7 +282,7 @@
{
"data": {
"text/plain": [
"InstructionProperties(duration=1.4e-06, error=0.18920000000000003, calibration=Schedule measure)"
"InstructionProperties(duration=1.4e-06, error=0.19640000000000002, calibration=Schedule measure)"
]
},
"execution_count": 8,
Expand Down
108 changes: 6 additions & 102 deletions docs/run/save-jobs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
{
"data": {
"text/plain": [
"[<RuntimeJob('crmfqhetdjr0008dzb7g', 'estimator')>,\n",
" <RuntimeJob('crmfq4m14ys00088aqk0', 'estimator')>,\n",
" <RuntimeJob('crm3r8stdjr0008dyqp0', 'qasm3-runner')>]"
"[<RuntimeJob('cs2dqrz4amg00087hrzg', 'sampler')>,\n",
" <RuntimeJob('cs2bca9kfpw00080febg', 'estimator')>,\n",
" <RuntimeJob('cs2bc5r965y0008531v0', 'estimator')>]"
]
},
"execution_count": 1,
Expand Down Expand Up @@ -72,7 +72,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"crmfqhetdjr0008dzb7g\n"
"cs2dqrz4amg00087hrzg\n"
]
}
],
Expand All @@ -92,55 +92,7 @@
{
"data": {
"text/plain": [
"PrimitiveResult([PubResult(data=DataBin<99>(evs=[ 0.64570064 0.31953125 0.15481172 0.15026362 0.1015873 0.06350626\n",
" 0.02247191 0.03113208 0.02272727 -0.01854839 0.02457757 -0.02230769\n",
" 0.02293578 -0.01092044 -0.02472952 -0.00944882 0.03767123 0.02166934\n",
" 0.01305057 -0.01098901 0.01068702 0.01762821 0.01932773 0.01294498\n",
" -0.01468315 -0.01232877 -0.03030303 0.01155462 0.12745098 -0.02332815\n",
" 0.00245098 0.05736434 -0.00078616 -0.01820941 0.02724359 0.03257576\n",
" -0.0229709 0.01394052 0.03928571 0.02599388 -0.0015625 0.02323718\n",
" -0.01215805 -0.00234742 0.00466563 0.03106061 0.01630435 0.0464527\n",
" 0. -0.00151745 0.02841782 0.01697531 0.01351351 -0.01018676\n",
" 0.00152672 0.00622084 0.0060698 0.02579666 0.02 0.01148545\n",
" 0.02586207 0.00381098 -0.01461538 0.04876161 0.00076805 -0.00608696\n",
" -0.00813743 0. -0.03056027 -0.02665245 0.01660156 -0.16216216\n",
" -0.064 -0.01295732 -0.01930894 -0.01829268 0.02163833 0.00496689\n",
" 0.04223228 -0.01465798 -0.01317957 -0.00618238 -0.02963526 -0.00613497\n",
" 0.00152905 -0.02941176 -0.03215926 0.01529791 0.01905488 0.01687117\n",
" -0.00152905 0.03466872 0.00381098 -0.02531646 0.04984424 0.03257576\n",
" 0.00716561 0.0375 0.01192369], stds=[0.0301912 0.02439315 0.03771335 0.02273161 0.02739113 0.0295477\n",
" 0.03288008 0.02413365 0.03831347 0.02884026 0.02536583 0.02681657\n",
" 0.0272724 0.02060853 0.02863267 0.02421324 0.07009148 0.02684497\n",
" 0.02538034 0.02612797 0.02454662 0.0203859 0.02793376 0.02416668\n",
" 0.02155515 0.03890846 0.02796816 0.03592119 0.13748787 0.02046372\n",
" 0.0226519 0.02212958 0.02610926 0.02304325 0.05380769 0.01890131\n",
" 0.02313008 0.0258601 0.02763123 0.03068307 0.02649207 0.02440182\n",
" 0.02246694 0.0222245 0.02612686 0.0202093 0.020652 0.02290411\n",
" 0.02298056 0.02069357 0.02485448 0.02475432 0.0265815 0.02261385\n",
" 0.02070769 0.023968 0.0236309 0.01825162 0.02616927 0.0259223\n",
" 0.02572882 0.02750496 0.0233063 0.02454793 0.02621478 0.03324334\n",
" 0.02369112 0.02301501 0.02882225 0.03405876 0.0237285 0.07714824\n",
" 0.05473595 0.03195926 0.03185138 0.02856942 0.02328771 0.0266565\n",
" 0.01628194 0.02089134 0.02544533 0.02144492 0.02448796 0.02196046\n",
" 0.02090776 0.02034051 0.02206126 0.02163483 0.02571104 0.03089664\n",
" 0.02135038 0.02577374 0.02551062 0.02294048 0.02026551 0.0219107\n",
" 0.02212938 0.02250427 0.0280836 ], ensemble_standard_error=[0.02974919 0.02603545 0.03400854 0.02845832 0.02550986 0.0286863\n",
" 0.03596807 0.03020618 0.04042023 0.02581045 0.02458342 0.02462023\n",
" 0.02446983 0.02496223 0.02473559 0.0251978 0.05486275 0.02568755\n",
" 0.0261032 0.02511901 0.02442856 0.02564456 0.02689571 0.02589194\n",
" 0.02473166 0.04384101 0.02552859 0.03361648 0.10620428 0.02488889\n",
" 0.02614386 0.02483923 0.02515724 0.02428226 0.0513148 0.02425212\n",
" 0.02450734 0.02974316 0.02859573 0.02447125 0.02500003 0.02564716\n",
" 0.02431748 0.02503918 0.02488358 0.02425124 0.02484741 0.02705609\n",
" 0.02453988 0.02427923 0.02458539 0.0246942 0.02543922 0.02716611\n",
" 0.0244275 0.02488375 0.02427955 0.02428533 0.02461928 0.02450356\n",
" 0.02508538 0.02439038 0.02461746 0.02479152 0.02457758 0.02782663\n",
" 0.02893417 0.02488336 0.02717746 0.03413174 0.03125538 0.07381268\n",
" 0.04280605 0.02439182 0.03252825 0.0278795 0.02473417 0.02649038\n",
" 0.0241487 0.02606121 0.02636131 0.0247299 0.02432424 0.02454024\n",
" 0.02446485 0.02690224 0.02451218 0.0257676 0.02439365 0.02454261\n",
" 0.02446485 0.02466509 0.02439038 0.02532341 0.02494752 0.02425212\n",
" 0.02547828 0.02501455 0.02543877]), metadata={'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32})], metadata={'dynamical_decoupling': {'enable': True, 'sequence_type': 'XY4', 'extra_slack_distribution': 'middle', 'scheduling_method': 'alap'}, 'twirling': {'enable_gates': False, 'enable_measure': True, 'num_randomizations': 'auto', 'shots_per_randomization': 'auto', 'interleave_randomizations': True, 'strategy': 'active-accum'}, 'resilience': {'measure_mitigation': True, 'zne_mitigation': False, 'pec_mitigation': False}, 'version': 2})"
"PrimitiveResult([PubResult(data=DataBin<>(mid=BitArray(<shape=(), num_shots=4096, num_bits=2>), final=BitArray(<shape=(), num_shots=4096, num_bits=1>)), metadata={'circuit_metadata': {}})], metadata={'version': 2})"
]
},
"execution_count": 3,
Expand Down Expand Up @@ -193,55 +145,7 @@
{
"data": {
"text/plain": [
"PrimitiveResult([PubResult(data=DataBin<99>(evs=[ 0.64570064 0.31953125 0.15481172 0.15026362 0.1015873 0.06350626\n",
" 0.02247191 0.03113208 0.02272727 -0.01854839 0.02457757 -0.02230769\n",
" 0.02293578 -0.01092044 -0.02472952 -0.00944882 0.03767123 0.02166934\n",
" 0.01305057 -0.01098901 0.01068702 0.01762821 0.01932773 0.01294498\n",
" -0.01468315 -0.01232877 -0.03030303 0.01155462 0.12745098 -0.02332815\n",
" 0.00245098 0.05736434 -0.00078616 -0.01820941 0.02724359 0.03257576\n",
" -0.0229709 0.01394052 0.03928571 0.02599388 -0.0015625 0.02323718\n",
" -0.01215805 -0.00234742 0.00466563 0.03106061 0.01630435 0.0464527\n",
" 0. -0.00151745 0.02841782 0.01697531 0.01351351 -0.01018676\n",
" 0.00152672 0.00622084 0.0060698 0.02579666 0.02 0.01148545\n",
" 0.02586207 0.00381098 -0.01461538 0.04876161 0.00076805 -0.00608696\n",
" -0.00813743 0. -0.03056027 -0.02665245 0.01660156 -0.16216216\n",
" -0.064 -0.01295732 -0.01930894 -0.01829268 0.02163833 0.00496689\n",
" 0.04223228 -0.01465798 -0.01317957 -0.00618238 -0.02963526 -0.00613497\n",
" 0.00152905 -0.02941176 -0.03215926 0.01529791 0.01905488 0.01687117\n",
" -0.00152905 0.03466872 0.00381098 -0.02531646 0.04984424 0.03257576\n",
" 0.00716561 0.0375 0.01192369], stds=[0.0301912 0.02439315 0.03771335 0.02273161 0.02739113 0.0295477\n",
" 0.03288008 0.02413365 0.03831347 0.02884026 0.02536583 0.02681657\n",
" 0.0272724 0.02060853 0.02863267 0.02421324 0.07009148 0.02684497\n",
" 0.02538034 0.02612797 0.02454662 0.0203859 0.02793376 0.02416668\n",
" 0.02155515 0.03890846 0.02796816 0.03592119 0.13748787 0.02046372\n",
" 0.0226519 0.02212958 0.02610926 0.02304325 0.05380769 0.01890131\n",
" 0.02313008 0.0258601 0.02763123 0.03068307 0.02649207 0.02440182\n",
" 0.02246694 0.0222245 0.02612686 0.0202093 0.020652 0.02290411\n",
" 0.02298056 0.02069357 0.02485448 0.02475432 0.0265815 0.02261385\n",
" 0.02070769 0.023968 0.0236309 0.01825162 0.02616927 0.0259223\n",
" 0.02572882 0.02750496 0.0233063 0.02454793 0.02621478 0.03324334\n",
" 0.02369112 0.02301501 0.02882225 0.03405876 0.0237285 0.07714824\n",
" 0.05473595 0.03195926 0.03185138 0.02856942 0.02328771 0.0266565\n",
" 0.01628194 0.02089134 0.02544533 0.02144492 0.02448796 0.02196046\n",
" 0.02090776 0.02034051 0.02206126 0.02163483 0.02571104 0.03089664\n",
" 0.02135038 0.02577374 0.02551062 0.02294048 0.02026551 0.0219107\n",
" 0.02212938 0.02250427 0.0280836 ], ensemble_standard_error=[0.02974919 0.02603545 0.03400854 0.02845832 0.02550986 0.0286863\n",
" 0.03596807 0.03020618 0.04042023 0.02581045 0.02458342 0.02462023\n",
" 0.02446983 0.02496223 0.02473559 0.0251978 0.05486275 0.02568755\n",
" 0.0261032 0.02511901 0.02442856 0.02564456 0.02689571 0.02589194\n",
" 0.02473166 0.04384101 0.02552859 0.03361648 0.10620428 0.02488889\n",
" 0.02614386 0.02483923 0.02515724 0.02428226 0.0513148 0.02425212\n",
" 0.02450734 0.02974316 0.02859573 0.02447125 0.02500003 0.02564716\n",
" 0.02431748 0.02503918 0.02488358 0.02425124 0.02484741 0.02705609\n",
" 0.02453988 0.02427923 0.02458539 0.0246942 0.02543922 0.02716611\n",
" 0.0244275 0.02488375 0.02427955 0.02428533 0.02461928 0.02450356\n",
" 0.02508538 0.02439038 0.02461746 0.02479152 0.02457758 0.02782663\n",
" 0.02893417 0.02488336 0.02717746 0.03413174 0.03125538 0.07381268\n",
" 0.04280605 0.02439182 0.03252825 0.0278795 0.02473417 0.02649038\n",
" 0.0241487 0.02606121 0.02636131 0.0247299 0.02432424 0.02454024\n",
" 0.02446485 0.02690224 0.02451218 0.0257676 0.02439365 0.02454261\n",
" 0.02446485 0.02466509 0.02439038 0.02532341 0.02494752 0.02425212\n",
" 0.02547828 0.02501455 0.02543877]), metadata={'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32})], metadata={'dynamical_decoupling': {'enable': True, 'sequence_type': 'XY4', 'extra_slack_distribution': 'middle', 'scheduling_method': 'alap'}, 'twirling': {'enable_gates': False, 'enable_measure': True, 'num_randomizations': 'auto', 'shots_per_randomization': 'auto', 'interleave_randomizations': True, 'strategy': 'active-accum'}, 'resilience': {'measure_mitigation': True, 'zne_mitigation': False, 'pec_mitigation': False}, 'version': 2})"
"PrimitiveResult([PubResult(data=DataBin<>(mid=BitArray(<shape=(), num_shots=4096, num_bits=2>), final=BitArray(<shape=(), num_shots=4096, num_bits=1>)), metadata={'circuit_metadata': {}})], metadata={'version': 2})"
]
},
"execution_count": 5,
Expand Down
Loading

0 comments on commit 37ab796

Please sign in to comment.