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 0x7fc7e4ed4390>, 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 0x7fc7e4ed4390>, 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
27 changes: 13 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,24 @@
},
{
"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('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
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: ['u2', 'u3', 'u1', 'measure', 'cx', 'reset']\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: ['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
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
2 changes: 1 addition & 1 deletion docs/guides/classical-feedforward-and-control-flow.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
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
16 changes: 8 additions & 8 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",
"CZ gates: 153\n",
"ECR gates: 6\n",
"SX gates: 300\n",
"RZ gates: 187\n"
"SX gates: 310\n",
"RZ gates: 206\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: 865\n",
"X gates: 12\n",
"SX gates: 1593\n",
"RZ gates: 869\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 0x7f3e7271dd10>"
]
},
"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
32 changes: 16 additions & 16 deletions docs/guides/functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"We recommend using these versions or newer.\n",
"\n",
"```\n",
"qiskit[all]~=1.4.1\n",
"qiskit-ibm-runtime~=0.37.0\n",
"qiskit-ibm-catalog~=0.4\n",
"qiskit[all]~=2.1.2\n",
"qiskit-ibm-runtime~=0.40.1\n",
"qiskit-ibm-catalog~=0.9.0\n",
"```\n",
"</details>"
]
Expand Down Expand Up @@ -243,7 +243,7 @@
{
"data": {
"text/plain": [
"'7f08c9d5-471b-4da2-92e7-4f2cb94c23a8'"
"'1dc35d85-f329-4989-ba27-9b696e7da546'"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -385,16 +385,16 @@
{
"data": {
"text/plain": [
"[<Job | f6c29f49-4d5f-4fff-aca6-2e9a115b9763>,\n",
" <Job | 7f08c9d5-471b-4da2-92e7-4f2cb94c23a8>,\n",
" <Job | 62fe9176-d1e5-467e-b2bd-7a3f3c7be4e5>,\n",
" <Job | af525b2e-16b1-45a1-80bb-dbd94ce30258>,\n",
" <Job | b95a7a57-c1ad-4958-b7ac-953e4e1ee824>,\n",
" <Job | 7bfa33da-0f17-4e67-84b6-f556f7eeb436>,\n",
" <Job | ca46c191-9eb9-4de6-bfa7-b60d7eb29b5e>,\n",
" <Job | 6ac0ba93-3831-43fb-9fb9-760da2225e06>,\n",
" <Job | f0e38071-060d-47e8-988d-9cc1f69358e3>,\n",
" <Job | 629cf110-e490-4675-8a07-f6d298d166b0>]"
"[<Job | c38d9528-793f-4ab4-be16-17958044f9fd>,\n",
" <Job | b546737d-ce7c-4a66-a61a-a25a906c00eb>,\n",
" <Job | 060c9cb4-bc98-4d64-aab0-a49ea63770bc>,\n",
" <Job | aa9e9d92-fe72-4664-9918-961cd37c9995>,\n",
" <Job | 348a2479-109a-4358-a96f-acfd49d338c3>,\n",
" <Job | 97546134-601d-4931-8a17-775fabb02e82>,\n",
" <Job | 1dc35d85-f329-4989-ba27-9b696e7da546>,\n",
" <Job | 0bf0d586-2cd3-4092-8530-b7487551e043>,\n",
" <Job | 038f3b5c-1480-405d-b62f-99575e384462>,\n",
" <Job | 29b5157c-e47c-48f1-bf70-83c2b13888c2>]"
]
},
"execution_count": 9,
Expand All @@ -417,15 +417,15 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 10,
"id": "18d87f07-8a8e-4b93-80d0-7c07e49272e2",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"f6c29f49-4d5f-4fff-aca6-2e9a115b9763\n"
"c38d9528-793f-4ab4-be16-17958044f9fd\n"
]
}
],
Expand Down
Loading