Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guides/DAG-representation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"[DAGOpNode(op=Instruction(name='h', num_qubits=1, num_clbits=0, params=[]), qargs=(<Qubit register=(3, \"q\"), index=0>,), cargs=()),\n",
" DAGOpNode(op=Instruction(name='cx', num_qubits=2, num_clbits=0, params=[]), qargs=(<Qubit register=(3, \"q\"), index=0>, <Qubit register=(3, \"q\"), index=1>), cargs=()),\n",
" DAGOpNode(op=Instruction(name='measure', num_qubits=1, num_clbits=1, params=[]), qargs=(<Qubit register=(3, \"q\"), index=0>,), cargs=(<Clbit register=(3, \"c\"), index=0>,)),\n",
" DAGOpNode(op=Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[<qiskit.circuit.quantumcircuit.QuantumCircuit object at 0x7fcbf0f00510>, None]), qargs=(<Qubit register=(3, \"q\"), index=1>,), cargs=(<Clbit register=(3, \"c\"), index=0>, <Clbit register=(3, \"c\"), index=1>, <Clbit register=(3, \"c\"), index=2>))]"
" DAGOpNode(op=Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[<qiskit.circuit.quantumcircuit.QuantumCircuit object at 0x7ff3403b0c10>, None]), qargs=(<Qubit register=(3, \"q\"), index=1>,), cargs=(<Clbit register=(3, \"c\"), index=0>, <Clbit register=(3, \"c\"), index=1>, <Clbit register=(3, \"c\"), index=2>))]"
]
},
"execution_count": 3,
Expand Down Expand Up @@ -177,7 +177,7 @@
"output_type": "stream",
"text": [
"node name: if_else\n",
"op: Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[<qiskit.circuit.quantumcircuit.QuantumCircuit object at 0x7fcbf0fefbd0>, None])\n",
"op: Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[<qiskit.circuit.quantumcircuit.QuantumCircuit object at 0x7ff3403e7ad0>, None])\n",
"qargs: (<Qubit register=(3, \"q\"), index=1>,)\n",
"cargs: (<Clbit register=(3, \"c\"), index=0>, <Clbit register=(3, \"c\"), index=1>, <Clbit register=(3, \"c\"), index=2>)\n",
"condition: (ClassicalRegister(3, 'c'), 2)\n"
Expand Down
8 changes: 4 additions & 4 deletions docs/guides/build-noise-models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@
"text": [
"NoiseModel:\n",
" Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n",
" Instructions with noise: ['u2', 'u1', 'u3']\n",
" Instructions with noise: ['u2', 'u3', 'u1']\n",
" All-qubits errors: ['u1', 'u2', 'u3']\n"
]
}
Expand Down Expand Up @@ -570,7 +570,7 @@
"text": [
"NoiseModel:\n",
" Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n",
" Instructions with noise: ['u2', 'u1', 'u3']\n",
" Instructions with noise: ['u2', 'u3', 'u1']\n",
" Qubits with noise: [0]\n",
" Specific qubit errors: [('u1', (0,)), ('u2', (0,)), ('u3', (0,))]\n"
]
Expand Down Expand Up @@ -745,7 +745,7 @@
"text": [
"NoiseModel:\n",
" Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n",
" Instructions with noise: ['u3', 'u1', 'u2', 'reset', 'cx', 'measure']\n",
" Instructions with noise: ['cx', 'u1', 'measure', 'u3', 'reset', 'u2']\n",
" All-qubits errors: ['reset', 'measure', 'u1', 'u2', 'u3', 'cx']\n"
]
}
Expand Down Expand Up @@ -855,7 +855,7 @@
"text": [
"NoiseModel:\n",
" Basis gates: ['cx', 'id', 'rz', 'sx', 'u2', 'u3']\n",
" Instructions with noise: ['u3', 'u2', 'reset', 'cx', 'measure']\n",
" Instructions with noise: ['cx', 'measure', 'u3', 'reset', 'u2']\n",
" Qubits with noise: [0, 1, 2, 3]\n",
" Specific qubit errors: [('reset', (0,)), ('reset', (1,)), ('reset', (2,)), ('reset', (3,)), ('measure', (0,)), ('measure', (1,)), ('measure', (2,)), ('measure', (3,)), ('u2', (0,)), ('u2', (1,)), ('u2', (2,)), ('u2', (3,)), ('u3', (0,)), ('u3', (1,)), ('u3', (2,)), ('u3', (3,)), ('cx', (0, 0)), ('cx', (0, 1)), ('cx', (0, 2)), ('cx', (0, 3)), ('cx', (1, 0)), ('cx', (1, 1)), ('cx', (1, 2)), ('cx', (1, 3)), ('cx', (2, 0)), ('cx', (2, 1)), ('cx', (2, 2)), ('cx', (2, 3)), ('cx', (3, 0)), ('cx', (3, 1)), ('cx', (3, 2)), ('cx', (3, 3))]\n"
]
Expand Down
8 changes: 4 additions & 4 deletions docs/guides/circuit-transpilation-settings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
{
"data": {
"text/plain": [
"'ibm_fez'"
"'ibm_marrakesh'"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -386,9 +386,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"0.774\n",
"0.978\n",
"0.979\n"
"0.973\n",
"0.994\n",
"0.991\n"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/create-transpiler-plugin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@
{
"data": {
"text/plain": [
"['ag', 'bm', 'default', 'greedy', 'layers', 'lnn', 'rb_default']"
"['rb_default', 'ag', 'bm', 'default', 'greedy', 'layers', 'lnn']"
]
},
"execution_count": 7,
Expand Down
8 changes: 4 additions & 4 deletions docs/guides/custom-backend.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,10 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CZ gates: 580\n",
"X gates: 129\n",
"SX gates: 936\n",
"RZ gates: 840\n"
"CZ gates: 551\n",
"X gates: 132\n",
"SX gates: 909\n",
"RZ gates: 832\n"
]
}
],
Expand Down
36 changes: 18 additions & 18 deletions docs/guides/debug-qiskit-runtime-jobs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,13 @@
"output_type": "stream",
"text": [
"Noisy results:\n",
" NeatResult([NeatPubResult(vals=array([0.9921875 , 0.99023438, 0.99023438, 0.99023438, 0.97265625,\n",
" 0.97070312])), NeatPubResult(vals=array([0.98046875, 0.98632812, 0.98828125, 0.9921875 , 0.96289062,\n",
" 0.9765625 ])), NeatPubResult(vals=array([0.96289062, 0.96875 , 0.953125 , 0.953125 , 0.95507812,\n",
" 0.9609375 ])), NeatPubResult(vals=array([0.94726562, 0.95507812, 0.93945312, 0.94921875, 0.94921875,\n",
" 0.95898438])), NeatPubResult(vals=array([0.91992188, 0.92382812, 0.91015625, 0.921875 , 0.92382812,\n",
" 0.9375 ])), NeatPubResult(vals=array([0.90039062, 0.9140625 , 0.90234375, 0.92578125, 0.91601562,\n",
" 0.94335938]))])\n",
" NeatResult([NeatPubResult(vals=array([0.99804688, 0.99609375, 0.99023438, 0.99609375, 0.98828125,\n",
" 0.984375 ])), NeatPubResult(vals=array([0.97851562, 0.98242188, 0.97265625, 0.9765625 , 0.97851562,\n",
" 0.98632812])), NeatPubResult(vals=array([0.96289062, 0.96875 , 0.96289062, 0.97460938, 0.9609375 ,\n",
" 0.984375 ])), NeatPubResult(vals=array([0.94726562, 0.9375 , 0.9453125 , 0.96679688, 0.96289062,\n",
" 0.99023438])), NeatPubResult(vals=array([0.93359375, 0.92578125, 0.94726562, 0.93945312, 0.95898438,\n",
" 0.97070312])), NeatPubResult(vals=array([0.92578125, 0.93164062, 0.92382812, 0.9609375 , 0.94921875,\n",
" 0.96679688]))])\n",
"\n"
]
}
Expand Down Expand Up @@ -389,22 +389,22 @@
"output_type": "stream",
"text": [
"Mean absolute difference between ideal and noisy results for circuits with 1 layers:\n",
" 1.56%\n",
" 0.78%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 2 layers:\n",
" 1.89%\n",
" 2.08%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 3 layers:\n",
" 4.1%\n",
" 3.09%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 4 layers:\n",
" 5.01%\n",
" 4.17%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 5 layers:\n",
" 7.72%\n",
" 5.4%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 6 layers:\n",
" 8.3%\n",
" 5.7%\n",
"\n"
]
}
Expand Down Expand Up @@ -613,19 +613,19 @@
"output_type": "stream",
"text": [
"Mean absolute difference for factors [1, 1.1]:\n",
" 12.04%\n",
" 3.02%\n",
"\n",
"Mean absolute difference for factors [1, 1.1, 1.2]:\n",
" 3.79%\n",
" 4.33%\n",
"\n",
"Mean absolute difference for factors [1, 1.5, 2]:\n",
" 4.73%\n",
" 1.46%\n",
"\n",
"Mean absolute difference for factors [1, 1.5, 2, 2.5, 3]:\n",
" 3.65%\n",
" 1.64%\n",
"\n",
"Mean absolute difference for factors [1, 4]:\n",
" 2.72%\n",
" 1.21%\n",
"\n"
]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/defaults-and-configuration-options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
{
"data": {
"text/plain": [
"<qiskit.transpiler.passmanager.StagedPassManager at 0x7f1b3d2d0c90>"
"<qiskit.transpiler.passmanager.StagedPassManager at 0x7f4fd6910a90>"
]
},
"execution_count": 3,
Expand Down
90 changes: 41 additions & 49 deletions docs/guides/estimator-examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
" > Expectation value: -0.008839779005524863\n",
" > Expectation value: 0.0632577754348972\n",
" > Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n"
]
}
Expand Down Expand Up @@ -127,12 +127,12 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Expectation values for PUB 0: 0.9937888198757764\n",
">>> Standard errors for PUB 0: 1.7873718562576024\n",
">>> Expectation values for PUB 1: -0.1038961038961039\n",
">>> Standard errors for PUB 1: 1.3378580728628524\n",
">>> Expectation values for PUB 2: -0.6753246753246753\n",
">>> Standard errors for PUB 2: 1.7025095006727553\n"
">>> Expectation values for PUB 0: -0.16020671834625322\n",
">>> Standard errors for PUB 0: 0.17374064393929056\n",
">>> Expectation values for PUB 1: -0.06719865602687947\n",
">>> Standard errors for PUB 1: 0.10794046495893077\n",
">>> Expectation values for PUB 2: -0.004046535154274153\n",
">>> Standard errors for PUB 2: 0.12293549720552657\n"
]
}
],
Expand Down Expand Up @@ -199,46 +199,38 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Expectation values: [[ 9.89263974e-01 9.41062225e-01 7.87637085e-01 5.83548830e-01\n",
" 3.06029826e-01 -7.99943914e-03 -3.11567899e-01 -5.91343155e-01\n",
" -8.05892215e-01 -9.36139493e-01 -9.88853746e-01 -9.42703136e-01\n",
" -8.10609833e-01 -5.90522700e-01 -3.15465062e-01 -5.94830090e-03\n",
" 2.90851403e-01 5.85805082e-01 8.02200166e-01 9.41882681e-01\n",
" 9.90494657e-01]\n",
" [ 9.23012209e-03 3.12183240e-01 6.00163049e-01 8.02405280e-01\n",
" 9.48446323e-01 9.84956584e-01 9.42703136e-01 8.05071760e-01\n",
" 5.92984066e-01 3.07055395e-01 -3.07670736e-03 -3.18131541e-01\n",
" -5.60165854e-01 -7.94200727e-01 -9.43728705e-01 -9.91315112e-01\n",
" -9.39626428e-01 -8.03430849e-01 -5.79446553e-01 -3.04799143e-01\n",
" -4.92273178e-03]\n",
" [ 8.20455297e-03 -3.00696866e-01 -5.99752822e-01 -8.11635402e-01\n",
" -9.45574729e-01 -9.92340681e-01 -9.40036656e-01 -8.00354142e-01\n",
" -5.82113033e-01 -2.90441175e-01 1.84602442e-03 3.24284956e-01\n",
" 5.64883472e-01 8.04866646e-01 9.44138933e-01 9.93366250e-01\n",
" 9.48651437e-01 7.87842199e-01 5.58730057e-01 3.16490631e-01\n",
" -6.97387002e-03]\n",
" [ 9.91930454e-01 9.40446884e-01 7.89483109e-01 5.52986870e-01\n",
" 2.97209931e-01 2.25625207e-03 -3.11567899e-01 -5.92984066e-01\n",
" -8.08353581e-01 -9.48036095e-01 -9.90699771e-01 -9.42498022e-01\n",
" -8.09584264e-01 -5.96265887e-01 -3.07055395e-01 -2.05113824e-04\n",
" 3.02132663e-01 5.95240318e-01 7.93995613e-01 9.42703136e-01\n",
" 9.93776478e-01]]\n",
">>> Standard errors: [[0.00312841 0.00403472 0.00759426 0.00833516 0.01030326 0.01122794\n",
" 0.01128844 0.00813687 0.00865973 0.00513426 0.00345264 0.00388667\n",
" 0.00736782 0.01026783 0.01038179 0.01246262 0.01191826 0.01081814\n",
" 0.00850225 0.00496315 0.00269764]\n",
" [0.01123964 0.01177892 0.00819503 0.0073663 0.00427303 0.00289125\n",
" 0.00435623 0.0066848 0.01140235 0.00993107 0.00840459 0.00821741\n",
" 0.0097656 0.0082026 0.00506637 0.00357209 0.0041762 0.00767615\n",
" 0.00831383 0.01094546 0.01373803]\n",
" [0.0121451 0.01227001 0.00831633 0.00691503 0.00385729 0.00267653\n",
" 0.00454884 0.00722136 0.01080783 0.0098484 0.01141928 0.01035556\n",
" 0.00804047 0.0058858 0.00398198 0.00281015 0.00501157 0.00714316\n",
" 0.00954163 0.00878997 0.01213102]\n",
" [0.00290704 0.0047878 0.00638958 0.00768626 0.00875767 0.00887984\n",
" 0.01145493 0.00904896 0.00599187 0.00482709 0.00298048 0.00428419\n",
" 0.00690245 0.00855953 0.00997334 0.00862447 0.00870133 0.00872892\n",
" 0.00487633 0.00504538 0.00311229]]\n",
">>> Expectation values: [[ 0.98628077 0.93919754 0.79465816 0.5781575 0.31313438 -0.00678492\n",
" -0.28681711 -0.56150361 -0.78478918 -0.93282382 -0.98134629 -0.93097339\n",
" -0.80452714 -0.59727864 -0.31765766 -0.01048579 0.28352745 0.56479326\n",
" 0.79589178 0.93323503 0.98052387]\n",
" [ 0.00760734 0.29915333 0.57322301 0.80370472 0.93755271 0.9819631\n",
" 0.94001995 0.78828445 0.58494242 0.31621843 -0.00246724 -0.28722832\n",
" -0.5726062 -0.78828445 -0.91925398 -0.98628077 -0.93364624 -0.79568618\n",
" -0.57507345 -0.314368 0.0057569 ]\n",
" [-0.00411207 -0.29319082 -0.57589586 -0.79753661 -0.93775831 -0.97929025\n",
" -0.9317958 -0.79054609 -0.56273723 -0.29524686 -0.00185043 0.30429342\n",
" 0.5668493 0.77882668 0.93076779 0.97188852 0.92521649 0.7913685\n",
" 0.57301741 0.29524686 -0.00678492]\n",
" [ 0.97250533 0.9315902 0.79465816 0.56952215 0.29031237 -0.00884096\n",
" -0.29606928 -0.5890545 -0.79404135 -0.92706692 -0.98175749 -0.93529107\n",
" -0.79301333 -0.59069933 -0.31848007 0.00719613 0.30819989 0.572195\n",
" 0.79075169 0.92398286 0.97826223]]\n",
">>> Standard errors: [[0.00363168 0.0052109 0.00590163 0.00832639 0.00949119 0.01422975\n",
" 0.01199622 0.00877116 0.007953 0.0048231 0.00367264 0.00475861\n",
" 0.00758118 0.01276064 0.01240091 0.0122515 0.01111632 0.01121074\n",
" 0.00852078 0.0056721 0.00351189]\n",
" [0.00949618 0.01292993 0.00940798 0.00712022 0.00478754 0.00311753\n",
" 0.00367741 0.00580037 0.00780912 0.01246274 0.01084742 0.01221882\n",
" 0.01117512 0.00771461 0.00580151 0.00303569 0.0045027 0.00702489\n",
" 0.01111989 0.01048531 0.01159703]\n",
" [0.01108259 0.009568 0.00899357 0.00606484 0.00514088 0.00406504\n",
" 0.00468505 0.00724117 0.00951732 0.01042167 0.01144285 0.01194984\n",
" 0.00877421 0.00792539 0.00570017 0.00334397 0.00546576 0.00701072\n",
" 0.00907453 0.011945 0.01274406]\n",
" [0.00409137 0.00374876 0.00692343 0.00970478 0.008687 0.0103992\n",
" 0.01172448 0.00893856 0.00640441 0.00437638 0.00375958 0.00392934\n",
" 0.00600244 0.00743488 0.00935695 0.01046303 0.0105788 0.00977039\n",
" 0.0074133 0.00522161 0.00354015]]\n",
">>> Metadata: {'shots': 10016, 'target_precision': 0.01, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n"
]
}
Expand Down Expand Up @@ -315,9 +307,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
" > Expectation value: 0.025219391667376672\n",
" > Expectation value: 0.00703657553324049\n",
" > Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n",
" > Another Expectation value: 0.002376355265112134\n",
" > Another Expectation value: -0.027626745040411464\n",
" > More Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n"
]
}
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/estimator-options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
{
"data": {
"text/plain": [
"<RuntimeJobV2('d9mqa0g8csec73fagtl0', 'estimator')>"
"<RuntimeJobV2('da0144t0vrcc73bpt8h0', 'estimator')>"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -284,7 +284,7 @@
{
"data": {
"text/plain": [
"<RuntimeJobV2('d9mqa2o8csec73fagtpg', 'estimator')>"
"<RuntimeJobV2('da01470b1g9c73a99jo0', 'estimator')>"
]
},
"execution_count": 5,
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/execute-dynamic-circuits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Job ID: d9mq9qnurbec73e67acg (DONE)\n"
">>> Job ID: da013vno3ppc73akuemg (DONE)\n"
]
}
],
Expand Down
12 changes: 9 additions & 3 deletions docs/guides/get-started-with-estimator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"ibm_fez\n"
"ibm_marrakesh\n"
]
}
],
Expand Down Expand Up @@ -216,7 +216,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Job ID: d9mq9tnurbec73e67aj0\n",
">>> Job ID: da0143f2sl0c73bmhla0\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
">>> Job Status: QUEUED\n"
]
}
Expand All @@ -238,7 +244,7 @@
"output_type": "stream",
"text": [
">>> PrimitiveResult([PubResult(data=DataBin(evs=np.ndarray(<shape=(), dtype=float64>), stds=np.ndarray(<shape=(), dtype=float64>), ensemble_standard_error=np.ndarray(<shape=(), dtype=float64>)), metadata={'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32})], metadata={'dynamical_decoupling': {'enable': False, 'sequence_type': 'XX', '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})\n",
" > Expectation value: 29.745702323497138\n",
" > Expectation value: 23.158713340199547\n",
" > Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n"
]
}
Expand Down
Loading