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 0x7fe47d8eaa10>, 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 0x7effddf1d0d0>, 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 0x7fe47d61d090>, None])\n",
"op: Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[<qiskit.circuit.quantumcircuit.QuantumCircuit object at 0x7effdd8f7490>, 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
9 changes: 8 additions & 1 deletion docs/guides/algorithmiq-tem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@
"id": "47b0db71",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The history saving thread hit an unexpected error (OperationalError('database is locked')).History will not be written to the database.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
Expand Down Expand Up @@ -263,7 +270,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"0.0017504758277988516\n"
"0.06579197124201017\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: ['u1', 'u3', 'u2']\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: ['u1', 'u3', 'u2']\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: ['reset', 'u3', 'measure', 'u1', 'u2', 'cx']\n",
" Instructions with noise: ['u3', 'u1', 'u2', 'measure', 'cx', 'reset']\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: ['reset', 'u3', 'measure', 'u2', 'cx']\n",
" Instructions with noise: ['u3', 'u2', 'measure', 'cx', 'reset']\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
15 changes: 11 additions & 4 deletions docs/guides/circuit-transpilation-settings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,17 @@
"id": "c1c91fbd-acfe-413e-a6c9-ad97f4dd5543",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The history saving thread hit an unexpected error (OperationalError('database is locked')).History will not be written to the database.\n"
]
},
{
"data": {
"text/plain": [
"<Image src=\"/docs/images/guides/circuit-transpilation-settings/extracted-outputs/c1c91fbd-acfe-413e-a6c9-ad97f4dd5543-0.svg\" alt=\"Output of the previous code cell\" />"
"<Image src=\"/docs/images/guides/circuit-transpilation-settings/extracted-outputs/c1c91fbd-acfe-413e-a6c9-ad97f4dd5543-1.svg\" alt=\"Output of the previous code cell\" />"
]
},
"execution_count": 8,
Expand Down Expand Up @@ -386,9 +393,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"0.837\n",
"0.989\n",
"0.993\n"
"0.821\n",
"0.964\n",
"0.969\n"
]
}
],
Expand Down
16 changes: 8 additions & 8 deletions docs/guides/custom-backend.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,10 @@
"output_type": "stream",
"text": [
"Post-Transpilation: \n",
"CZ gates: 148\n",
"ECR gates: 6\n",
"SX gates: 288\n",
"RZ gates: 205\n"
"CZ gates: 168\n",
"ECR gates: 8\n",
"SX gates: 304\n",
"RZ gates: 193\n"
]
}
],
Expand Down Expand Up @@ -585,10 +585,10 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CZ gates: 939\n",
"X gates: 35\n",
"SX gates: 1741\n",
"RZ gates: 1258\n"
"CZ gates: 844\n",
"X gates: 30\n",
"SX gates: 1557\n",
"RZ gates: 1144\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 @@ -344,13 +344,13 @@
"output_type": "stream",
"text": [
"Noisy results:\n",
" NeatResult([NeatPubResult(vals=array([0.9921875 , 0.99804688, 0.984375 , 0.9921875 , 0.98242188,\n",
" 0.97851562])), NeatPubResult(vals=array([0.98242188, 0.98046875, 0.9921875 , 0.99804688, 0.97265625,\n",
" 0.98632812])), NeatPubResult(vals=array([0.97265625, 0.97851562, 0.95117188, 0.96289062, 0.953125 ,\n",
" 0.96484375])), NeatPubResult(vals=array([0.93554688, 0.9375 , 0.94726562, 0.96289062, 0.953125 ,\n",
" 0.96289062])), NeatPubResult(vals=array([0.91796875, 0.9296875 , 0.91015625, 0.9140625 , 0.93164062,\n",
" 0.92382812])), NeatPubResult(vals=array([0.921875 , 0.9296875 , 0.90429688, 0.91015625, 0.90820312,\n",
" 0.94140625]))])\n",
" NeatResult([NeatPubResult(vals=array([0.99804688, 0.99023438, 0.99804688, 0.99609375, 0.96289062,\n",
" 0.96875 ])), NeatPubResult(vals=array([0.97851562, 0.984375 , 0.98828125, 0.99609375, 0.97070312,\n",
" 0.96484375])), NeatPubResult(vals=array([0.98046875, 0.984375 , 0.94726562, 0.95898438, 0.92773438,\n",
" 0.9375 ])), NeatPubResult(vals=array([0.97070312, 0.96484375, 0.9609375 , 0.96679688, 0.93164062,\n",
" 0.93945312])), NeatPubResult(vals=array([0.91210938, 0.9296875 , 0.90429688, 0.9140625 , 0.890625 ,\n",
" 0.91601562])), NeatPubResult(vals=array([0.9140625 , 0.9296875 , 0.90820312, 0.91210938, 0.86914062,\n",
" 0.890625 ]))])\n",
"\n"
]
}
Expand Down Expand Up @@ -386,22 +386,22 @@
"output_type": "stream",
"text": [
"Mean absolute difference between ideal and noisy results for circuits with 1 layers:\n",
" 1.2%\n",
" 1.43%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 2 layers:\n",
" 1.46%\n",
" 1.95%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 3 layers:\n",
" 3.61%\n",
" 4.39%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 4 layers:\n",
" 5.01%\n",
" 4.43%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 5 layers:\n",
" 7.88%\n",
" 8.89%\n",
"\n",
"Mean absolute difference between ideal and noisy results for circuits with 6 layers:\n",
" 8.07%\n",
" 9.6%\n",
"\n"
]
}
Expand Down Expand Up @@ -608,19 +608,19 @@
"output_type": "stream",
"text": [
"Mean absolute difference for factors [1, 1.1]:\n",
" 9.17%\n",
" 6.75%\n",
"\n",
"Mean absolute difference for factors [1, 1.1, 1.2]:\n",
" 4.99%\n",
" 5.18%\n",
"\n",
"Mean absolute difference for factors [1, 1.5, 2]:\n",
" 4.4%\n",
" 4.85%\n",
"\n",
"Mean absolute difference for factors [1, 1.5, 2, 2.5, 3]:\n",
" 4.69%\n",
" 7.39%\n",
"\n",
"Mean absolute difference for factors [1, 4]:\n",
" 4.16%\n",
" 5.17%\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 0x7f8d8aaf5f10>"
"<qiskit.transpiler.passmanager.StagedPassManager at 0x7f4248a12450>"
]
},
"execution_count": 3,
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/execute-dynamic-circuits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"[<IBMBackend('ibm_boston')>, <IBMBackend('ibm_pittsburgh')>, <IBMBackend('ibm_fez')>, <IBMBackend('ibm_kingston')>, <IBMBackend('ibm_miami')>, <IBMBackend('ibm_marrakesh')>, <IBMBackend('ibm_torino')>]\n"
"[<IBMBackend('ibm_boston')>, <IBMBackend('ibm_fez')>, <IBMBackend('ibm_pittsburgh')>, <IBMBackend('ibm_marrakesh')>, <IBMBackend('ibm_kingston')>]\n"
]
}
],
Expand Down Expand Up @@ -211,7 +211,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Job ID: d76cmaq3qcgc73fsqarg (DONE)\n"
">>> Job ID: d7fk2at6agrc738ipu50 (DONE)\n"
]
}
],
Expand Down
10 changes: 5 additions & 5 deletions docs/guides/get-started-with-primitives.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Job ID: d76cm768faus73f14eg0\n"
">>> Job ID: d7fk1ru2cugc739qmah0\n"
]
},
{
Expand Down Expand Up @@ -265,7 +265,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: 28.628978416256825\n",
" > Expectation value: 27.620702155206207\n",
" > Metadata: {'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {}, 'num_randomizations': 32}\n"
]
}
Expand Down Expand Up @@ -351,7 +351,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Circuit ops (ISA): OrderedDict([('sx', 3088), ('rz', 3036), ('cz', 1089), ('measure', 127), ('barrier', 1)])\n"
">>> Circuit ops (ISA): OrderedDict([('rz', 3036), ('sx', 1769), ('cz', 378), ('measure', 127), ('barrier', 1)])\n"
]
}
],
Expand Down Expand Up @@ -405,7 +405,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Job ID: d76cmme8faus73f14fi0\n",
">>> Job ID: d7fk3da1u7fs739m40kg\n",
">>> Job Status: QUEUED\n"
]
}
Expand All @@ -426,7 +426,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"First ten results for the 'meas' output register: ['1001101111100100101100100000100000001000110000010000011010111000000101100000110111010010100001010101011100110100100101000000011', '0000010001011111011000010001101100110010110001111010110001001000000100110111011111010011000001011100110111111010001010000000000', '0000100111000111110111110010000000101010100011110111110111000110101000100000100001000111000001110000000101000011111100100000000', '0100111111100001011101101101010010101100010001101110101010010100000011101100010100100011001000010011010101011010000000100010011', '1111000001001101001011010010000100010010010101010111001000100000100000010110111011010101000101011110001100101100011110000111110', '1100000111101011001001110010001000001000111111010101000011001000010101100001011000000100000000011010101001111110100110100010100', '1000111001100001100000111100101111100011100110101000100110001111010010111110011010010010010101010011100101001101111101000100000', '0111101010100001110000100010010100101010100010010101011010011001101100011001010000000100111010010001100011001010000000101001111', '0100001110000101111111101111010111000000000101011010100111001101001001001000101001100010101010000001001001000000100000101010101', '1101010100001000000100000110110101000000000000000100100001100100000000100000011101001100110110011100000001100111110010001011100']\n"
"First ten results for the 'meas' output register: ['0000000001110010011001100101000110100000110001010111110011001001011101010100001001010100001101111100001100011000110001010011000', '1000101110101100100001111000110001011000101010111111000001011101010001000100111001111001100001101011100100011001100000101010101', '1000011100111111100011011110100101101001100010110101010101010111111100100111100011101000010100010110001010111000100011010010010', '0001010101000101001111111111011100000000010110100000000011011000110011000000001110101010001010100111000111001011001100110000010', '1100010101110010110001011111111000100001001100011010101010001110110011001011001010100110001101100001100000010001000100110100000', '1000011010001011010011011010110011001101011010101111000101010100110010001001000001010101010110101000010011010001110000100101000', '1111101000110100000000000011111000011001100110000100010111111100000110011000000001011001010010100100011100101010110011111111111', '0001101110001100110111010101100000000000000100000101000010101011011001100010100100100011010111110100111000101110011100110001010', '0101100011100110000010111010110101111101100010011111001010001001000100011110101100000000100011011000011011001010010000000101011', '0100000110100110101111011111011100100100001001000010101000001000110001110001001000101100111001000100011101101000011010111111111']\n"
]
}
],
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/hello-world.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
">>> Job ID: d76cmli3qcgc73fsqbhg\n"
">>> Job ID: d7fk2fld4lnc73fff96g\n"
]
}
],
Expand Down Expand Up @@ -629,7 +629,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"d76co6fq1anc738degh0\n"
"d7fk4bdd4lnc73fffb3g\n"
]
}
],
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/measure-qubits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{
"data": {
"text/plain": [
"<qiskit.circuit.instructionset.InstructionSet at 0x7f8504496200>"
"<qiskit.circuit.instructionset.InstructionSet at 0x7f05848ca0e0>"
]
},
"execution_count": 1,
Expand Down Expand Up @@ -106,7 +106,7 @@
{
"data": {
"text/plain": [
"<qiskit.circuit.instructionset.InstructionSet at 0x7f8504496110>"
"<qiskit.circuit.instructionset.InstructionSet at 0x7f05848ca4a0>"
]
},
"execution_count": 2,
Expand Down Expand Up @@ -141,7 +141,7 @@
{
"data": {
"text/plain": [
"<qiskit.circuit.instructionset.InstructionSet at 0x7f8504495d80>"
"<qiskit.circuit.instructionset.InstructionSet at 0x7f05848c9cc0>"
]
},
"execution_count": 3,
Expand Down
Loading
Loading