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
6 changes: 3 additions & 3 deletions docs/guides/DAG-representation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"```\n",
"</details>"
]
Expand Down Expand Up @@ -131,7 +131,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 0x7fb77e27f5d0>, 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 0x7f4272393c50>, 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 @@ -162,7 +162,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 0x7fb77e27f5d0>, None])\n",
"op: Instruction(name='if_else', num_qubits=1, num_clbits=3, params=[<qiskit.circuit.quantumcircuit.QuantumCircuit object at 0x7f4272393c50>, 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
28 changes: 14 additions & 14 deletions docs/guides/add-job-tags.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-runtime~=0.40.1\n",
"```\n",
"</details>"
Expand All @@ -49,7 +50,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 1,
"id": "74a7a1ea-f2ae-4b8c-9499-af52840c2e74",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -100,7 +101,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 2,
"id": "205ceaf7-f79d-4452-b4b0-9688e39a4564",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -132,26 +133,25 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 3,
"id": "b6db503e-46ef-406e-9420-ef73446df564",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[<RuntimeJobV2('d38l3pkgenls73cf263g', 'sampler')>,\n",
" <RuntimeJobV2('d36s55gitjus73f5li10', 'sampler')>,\n",
" <RuntimeJobV2('d36s4mkda4cs73a8994g', 'sampler')>,\n",
" <RuntimeJobV2('d36rs9o0sqis73982e4g', 'sampler')>,\n",
" <RuntimeJobV2('d36rptsgenls73cda9n0', 'sampler')>,\n",
" <RuntimeJobV2('d36rohkgenls73cda87g', 'sampler')>,\n",
" <RuntimeJobV2('d36rnr0itjus73f5l4m0', 'sampler')>,\n",
" <RuntimeJobV2('d36rnp0itjus73f5l4j0', 'sampler')>,\n",
" <RuntimeJobV2('d35f3joitjus73f49ds0', 'sampler')>,\n",
" <RuntimeJobV2('d35bsn80sqis7396img0', 'sampler')>]"
"[<RuntimeJobV2('d3nkieg3qtks738eg8t0', 'sampler')>,\n",
" <RuntimeJobV2('d3ed8g1b641c738j6vdg', 'sampler')>,\n",
" <RuntimeJobV2('d38q4qcda4cs73aa79v0', 'sampler')>,\n",
" <RuntimeJobV2('d38q14g0sqis739a0ing', 'sampler')>,\n",
" <RuntimeJobV2('d38pumcgenls73cf8c4g', 'sampler')>,\n",
" <RuntimeJobV2('d38pr3cgenls73cf88i0', 'sampler')>,\n",
" <RuntimeJobV2('d38labsda4cs73aa16vg', 'sampler')>,\n",
" <RuntimeJobV2('d38l9lg0sqis7399qmrg', 'sampler')>,\n",
" <RuntimeJobV2('d38l6l4da4cs73aa13bg', 'sampler')>]"
]
},
"execution_count": 21,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
20 changes: 16 additions & 4 deletions docs/guides/algorithmiq-tem.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,19 @@
"version-info"
]
},
"source": []
"source": [
"<details>\n",
"<summary><b>Package versions</b></summary>\n",
"\n",
"The code on this page was developed using the following requirements.\n",
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-catalog~=0.10.0\n",
"```\n",
"</details>"
]
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -130,7 +142,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"id": "cc0a8093",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -158,7 +170,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "ab05b87f",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -332,7 +344,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"PrimitiveResult([PubResult(data=DataBin(evs=np.ndarray(<shape=(1,), dtype=float64>), stds=np.ndarray(<shape=(1,), dtype=float64>)), metadata={'evs_non_mitigated': array([0.07311669]), 'stds_non_mitigated': array([0.05869849]), 'evs_mitigated_no_readout_mitigation': array([0.07794912]), 'stds_mitigated_no_readout_mitigation': array([0.06326868]), 'evs_non_mitigated_with_readout_mitigation': array([0.07334523]), 'stds_non_mitigated_with_readout_mitigation': array([0.06148914])})], metadata={})\n"
"PrimitiveResult([PubResult(data=DataBin(evs=np.ndarray(<shape=(1,), dtype=float64>), stds=np.ndarray(<shape=(1,), dtype=float64>)), metadata={'evs_non_mitigated': array([0.13958641]), 'stds_non_mitigated': array([0.05732011]), 'evs_mitigated_no_readout_mitigation': array([0.14186674]), 'stds_mitigated_no_readout_mitigation': array([0.05829368]), 'evs_non_mitigated_with_readout_mitigation': array([0.15172876]), 'stds_non_mitigated_with_readout_mitigation': array([0.06563904])})], metadata={'resource_usage': {'RUNNING: OPTIMIZING_FOR_HARDWARE': {'CPU_TIME': 1.1576359999999999}, 'RUNNING: WAITING_FOR_QPU': {'CPU_TIME': 1684.3159}, 'RUNNING: POST_PROCESSING': {'CPU_TIME': 11.820162}, 'RUNNING: EXECUTING_QPU': {'QPU_TIME': 160.0}}})\n"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/bit-ordering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"```\n",
"</details>"
]
Expand Down
10 changes: 5 additions & 5 deletions docs/guides/build-noise-models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-runtime~=0.40.1\n",
"qiskit-aer~=0.17\n",
"```\n",
Expand Down Expand Up @@ -506,7 +506,7 @@
"text": [
"NoiseModel:\n",
" Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n",
" Instructions with noise: ['u3', 'u2', 'u1']\n",
" Instructions with noise: ['u3', 'u1', 'u2']\n",
" All-qubits errors: ['u1', 'u2', 'u3']\n"
]
}
Expand Down Expand Up @@ -553,7 +553,7 @@
"text": [
"NoiseModel:\n",
" Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n",
" Instructions with noise: ['u3', 'u2', 'u1']\n",
" Instructions with noise: ['u3', 'u1', 'u2']\n",
" Qubits with noise: [0]\n",
" Specific qubit errors: [('u1', (0,)), ('u2', (0,)), ('u3', (0,))]\n"
]
Expand Down Expand Up @@ -728,7 +728,7 @@
"text": [
"NoiseModel:\n",
" Basis gates: ['cx', 'id', 'rz', 'sx', 'u1', 'u2', 'u3']\n",
" Instructions with noise: ['cx', 'u3', 'u1', 'measure', 'reset', 'u2']\n",
" Instructions with noise: ['reset', 'u2', 'measure', 'u1', 'u3', 'cx']\n",
" All-qubits errors: ['reset', 'measure', 'u1', 'u2', 'u3', 'cx']\n"
]
}
Expand Down Expand Up @@ -838,7 +838,7 @@
"text": [
"NoiseModel:\n",
" Basis gates: ['cx', 'id', 'rz', 'sx', 'u2', 'u3']\n",
" Instructions with noise: ['cx', 'u3', 'measure', 'reset', 'u2']\n",
" Instructions with noise: ['reset', 'u2', 'measure', 'u3', 'cx']\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
2 changes: 1 addition & 1 deletion docs/guides/circuit-library.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"```\n",
"</details>"
]
Expand Down
15 changes: 12 additions & 3 deletions docs/guides/classical-feedforward-and-control-flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-runtime~=0.40.1\n",
"```\n",
"</details>"
]
Expand Down Expand Up @@ -301,10 +302,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"id": "2ddb1b97-4223-427b-a4cd-99e2f6ccbfe9",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[<IBMBackend('ibm_pittsburgh')>, <IBMBackend('ibm_brisbane')>, <IBMBackend('ibm_fez')>, <IBMBackend('ibm_torino')>, <IBMBackend('ibm_marrakesh')>, <IBMBackend('ibm_kingston')>]\n"
]
}
],
"source": [
"from qiskit_ibm_runtime import QiskitRuntimeService\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/common-parameters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-runtime~=0.40.1\n",
"```\n",
"</details>"
Expand Down
16 changes: 8 additions & 8 deletions docs/guides/construct-circuits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"```\n",
"</details>"
]
Expand Down Expand Up @@ -88,9 +88,9 @@
{
"data": {
"text/plain": [
"[Qubit(QuantumRegister(2, 'qreg1'), 0),\n",
" Qubit(QuantumRegister(2, 'qreg1'), 1),\n",
" Qubit(QuantumRegister(1, 'qreg2'), 0)]"
"[<Qubit register=(2, \"qreg1\"), index=0>,\n",
" <Qubit register=(2, \"qreg1\"), index=1>,\n",
" <Qubit register=(1, \"qreg2\"), index=0>]"
]
},
"execution_count": 2,
Expand Down Expand Up @@ -434,7 +434,7 @@
"id": "87f1e053",
"metadata": {},
"source": [
"<span id=\"measure-qubits\"></span>\n",
"<span id=\"measure-qubits\"></span>\n",
"## Measure qubits\n",
"\n",
"Measurements are used to sample the states of individual qubits and transfer the results to a classical register. Note that if you are submitting circuits to a [Sampler](./primitives#sampler) primitive, measurements are required. However, circuits submitted to an [Estimator](./primitives#estimator) primitive must not contain measurements.\n",
Expand All @@ -458,7 +458,7 @@
{
"data": {
"text/plain": [
"<Image src=\"/docs/images/guides/construct-circuits/extracted-outputs/0cdb2273-0.avif\" alt=\"Output of the previous code cell\" />"
"<Image src=\"/docs/images/guides/construct-circuits/extracted-outputs/0cdb2273-0.svg\" alt=\"Output of the previous code cell\" />"
]
},
"execution_count": 12,
Expand All @@ -481,7 +481,7 @@
{
"data": {
"text/plain": [
"<Image src=\"/docs/images/guides/construct-circuits/extracted-outputs/6f33698c-0.avif\" alt=\"Output of the previous code cell\" />"
"<Image src=\"/docs/images/guides/construct-circuits/extracted-outputs/6f33698c-0.svg\" alt=\"Output of the previous code cell\" />"
]
},
"execution_count": 13,
Expand All @@ -504,7 +504,7 @@
{
"data": {
"text/plain": [
"<Image src=\"/docs/images/guides/construct-circuits/extracted-outputs/ca3f225f-0.avif\" alt=\"Output of the previous code cell\" />"
"<Image src=\"/docs/images/guides/construct-circuits/extracted-outputs/ca3f225f-0.svg\" alt=\"Output of the previous code cell\" />"
]
},
"execution_count": 14,
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 @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"```\n",
"</details>"
]
Expand Down
18 changes: 9 additions & 9 deletions docs/guides/custom-backend.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"```\n",
"</details>"
]
Expand Down Expand Up @@ -388,10 +388,10 @@
"output_type": "stream",
"text": [
"Post-Transpilation: \n",
"CZ gates: 167\n",
"ECR gates: 6\n",
"SX gates: 300\n",
"RZ gates: 187\n"
"CZ gates: 147\n",
"ECR gates: 10\n",
"SX gates: 302\n",
"RZ gates: 219\n"
]
}
],
Expand Down Expand Up @@ -570,10 +570,10 @@
"name": "stdout",
"output_type": "stream",
"text": [
"CZ gates: 883\n",
"X gates: 3\n",
"SX gates: 1650\n",
"RZ gates: 935\n"
"CZ gates: 881\n",
"X gates: 5\n",
"SX gates: 1618\n",
"RZ gates: 915\n"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/custom-transpiler-pass.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"```\n",
"</details>"
]
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/defaults-and-configuration-options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-runtime~=0.40.1\n",
"```\n",
"</details>"
Expand Down Expand Up @@ -250,7 +250,7 @@
{
"data": {
"text/plain": [
"<qiskit.transpiler.passmanager.StagedPassManager at 0x7f528def8a10>"
"<qiskit.transpiler.passmanager.StagedPassManager at 0x7f0c48b46790>"
]
},
"execution_count": 3,
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/dynamical-decoupling-pass-manager.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-runtime~=0.40.1\n",
"```\n",
"</details>"
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/fractional-gates.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=2.1.1\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-runtime~=0.40.1\n",
"```\n",
"</details>"
Expand Down
Loading