|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "markdown",
|
5 |
| - "id": "cb8aed01-2218-4524-b769-94e3f481b25f", |
| 5 | + "id": "b58546f5-fe44-488d-b402-b723a5eff5f4", |
6 | 6 | "metadata": {},
|
7 | 7 | "source": [
|
8 | 8 | "# Get backend information with Qiskit\n",
|
|
21 | 21 | },
|
22 | 22 | {
|
23 | 23 | "cell_type": "markdown",
|
24 |
| - "id": "3eccac60-3e0f-4f55-ad2d-f19620105ad3", |
| 24 | + "id": "8e0f7648-b359-4492-b88d-26566ca78af6", |
25 | 25 | "metadata": {
|
26 | 26 | "tags": [
|
27 | 27 | "version-info"
|
|
42 | 42 | },
|
43 | 43 | {
|
44 | 44 | "cell_type": "markdown",
|
45 |
| - "id": "fb232c67-5b12-4125-b786-aca54bd734c2", |
| 45 | + "id": "d3be18e3-d1b5-49c4-a82e-c3e5ecbd5491", |
46 | 46 | "metadata": {},
|
47 | 47 | "source": [
|
48 | 48 | "This page explains how to use Qiskit to find information about your available backends."
|
49 | 49 | ]
|
50 | 50 | },
|
51 | 51 | {
|
52 | 52 | "cell_type": "markdown",
|
53 |
| - "id": "915e21a1-edd8-40a8-a230-2105a024b81c", |
| 53 | + "id": "76d675eb-ad62-4436-9649-7cb6837e16f0", |
54 | 54 | "metadata": {},
|
55 | 55 | "source": [
|
56 | 56 | "## List backends\n",
|
|
64 | 64 | },
|
65 | 65 | {
|
66 | 66 | "cell_type": "markdown",
|
67 |
| - "id": "5a858078-ac19-4ee8-9642-d8d08c8ee58c", |
| 67 | + "id": "8a169a1d-0a02-41cd-89b0-5d606114866d", |
68 | 68 | "metadata": {},
|
69 | 69 | "source": [
|
70 | 70 | "<LegacyContent>\n",
|
|
78 | 78 | {
|
79 | 79 | "cell_type": "code",
|
80 | 80 | "execution_count": 1,
|
81 |
| - "id": "1dfa3af8-686d-420c-8b58-b8e687816fec", |
| 81 | + "id": "ad5d41fc-2bb5-4a32-b8bb-8dbc48ef2337", |
82 | 82 | "metadata": {},
|
83 | 83 | "outputs": [
|
84 | 84 | {
|
85 | 85 | "data": {
|
86 | 86 | "text/plain": [
|
87 | 87 | "[<IBMBackend('ibm_brisbane')>,\n",
|
88 | 88 | " <IBMBackend('ibm_sherbrooke')>,\n",
|
89 |
| - " <IBMBackend('ibm_torino')>,\n", |
90 |
| - " <IBMBackend('ibm_kyiv')>,\n", |
91 |
| - " <IBMBackend('test_eagle_us-east')>]" |
| 89 | + " <IBMBackend('ibm_torino')>]" |
92 | 90 | ]
|
93 | 91 | },
|
94 | 92 | "execution_count": 1,
|
|
107 | 105 | },
|
108 | 106 | {
|
109 | 107 | "cell_type": "markdown",
|
110 |
| - "id": "2e3a18e2-1130-4fb6-a57d-d7226b4268b7", |
| 108 | + "id": "88565803-2450-45e1-9075-720d9c57681e", |
111 | 109 | "metadata": {},
|
112 | 110 | "source": [
|
113 | 111 | "The [`QiskitRuntimeService.backend()`](../api/qiskit-ibm-runtime/qiskit-runtime-service#backend) method (note that this is singular: *backend*) takes the name of the backend as the input parameter and returns an [`IBMBackend`](../api/qiskit-ibm-runtime/ibm-backend) instance representing that particular backend:"
|
|
116 | 114 | {
|
117 | 115 | "cell_type": "code",
|
118 | 116 | "execution_count": 2,
|
119 |
| - "id": "25a40e79-a494-40e6-9558-17f4418a0efc", |
| 117 | + "id": "cd1fd069-fe00-4865-8ee5-ba788fa405ba", |
120 | 118 | "metadata": {},
|
121 | 119 | "outputs": [
|
122 | 120 | {
|
|
136 | 134 | },
|
137 | 135 | {
|
138 | 136 | "cell_type": "markdown",
|
139 |
| - "id": "3ba97c22-330f-4eed-8e44-e538f94c2974", |
| 137 | + "id": "4bcbb09a-30c0-4b7e-af9f-71a501fc1c47", |
140 | 138 | "metadata": {},
|
141 | 139 | "source": [
|
142 | 140 | "## Filter backends\n",
|
|
152 | 150 | },
|
153 | 151 | {
|
154 | 152 | "cell_type": "code",
|
155 |
| - "execution_count": 3, |
156 |
| - "id": "dbadd7dd-1272-4973-9ad8-5fd5a40ea008", |
| 153 | + "execution_count": 2, |
| 154 | + "id": "f9611008-cae5-451b-98a8-a59ae281b33e", |
157 | 155 | "metadata": {},
|
158 | 156 | "outputs": [
|
159 | 157 | {
|
160 | 158 | "data": {
|
161 | 159 | "text/plain": [
|
162 | 160 | "[<IBMBackend('ibm_brisbane')>,\n",
|
163 | 161 | " <IBMBackend('ibm_sherbrooke')>,\n",
|
164 |
| - " <IBMBackend('ibm_torino')>,\n", |
165 |
| - " <IBMBackend('ibm_kyiv')>,\n", |
166 |
| - " <IBMBackend('test_eagle_us-east')>]" |
| 162 | + " <IBMBackend('ibm_torino')>]" |
167 | 163 | ]
|
168 | 164 | },
|
169 |
| - "execution_count": 3, |
| 165 | + "execution_count": 2, |
170 | 166 | "metadata": {},
|
171 | 167 | "output_type": "execute_result"
|
172 | 168 | }
|
|
177 | 173 | },
|
178 | 174 | {
|
179 | 175 | "cell_type": "markdown",
|
180 |
| - "id": "b2d15581-56d8-4719-8e35-a8cbf0abd0c3", |
| 176 | + "id": "89f7fe95-5fcd-4838-a26a-0ca4aa0882e4", |
181 | 177 | "metadata": {},
|
182 | 178 | "source": [
|
183 | 179 | "Use these keyword arguments to filter by any attribute in backend configuration ([JSON schema](https://github.com/Qiskit/ibm-quantum-schemas/blob/main/schemas/backend_configuration_schema.json)) or status ([JSON schema](https://github.com/Qiskit/ibm-quantum-schemas/blob/main/schemas/backend_status_schema.json)). A similar method is [`QiskitRuntimeService.least_busy()`](../api/qiskit-ibm-runtime/qiskit-runtime-service#least_busy), which takes the same filters as `backends()` but returns the backend that matches the filters and has the least number of jobs pending in the queue:"
|
184 | 180 | ]
|
185 | 181 | },
|
186 | 182 | {
|
187 | 183 | "cell_type": "code",
|
188 |
| - "execution_count": 4, |
189 |
| - "id": "061ef5dc-cd72-4f7a-b4a0-c7cbaffd4169", |
| 184 | + "execution_count": 3, |
| 185 | + "id": "89d7a8c6-05e8-4ef8-8e50-bc5ead67a436", |
190 | 186 | "metadata": {},
|
191 | 187 | "outputs": [
|
192 | 188 | {
|
193 | 189 | "data": {
|
194 | 190 | "text/plain": [
|
195 |
| - "<IBMBackend('ibm_kyiv')>" |
| 191 | + "<IBMBackend('ibm_torino')>" |
196 | 192 | ]
|
197 | 193 | },
|
198 |
| - "execution_count": 4, |
| 194 | + "execution_count": 3, |
199 | 195 | "metadata": {},
|
200 | 196 | "output_type": "execute_result"
|
201 | 197 | }
|
|
206 | 202 | },
|
207 | 203 | {
|
208 | 204 | "cell_type": "markdown",
|
209 |
| - "id": "4dc42491-6a03-4e49-bd26-905187edd45b", |
| 205 | + "id": "9ab8d5ff-b8ce-4562-8226-95f88bae9438", |
210 | 206 | "metadata": {},
|
211 | 207 | "source": [
|
212 | 208 | "## Static backend information\n",
|
|
219 | 215 | {
|
220 | 216 | "cell_type": "code",
|
221 | 217 | "execution_count": 5,
|
222 |
| - "id": "7c963d4f-9792-4d76-97c8-93aa95c6f791", |
| 218 | + "id": "a42c128e-6559-498b-a313-8f1be787ab23", |
223 | 219 | "metadata": {},
|
224 | 220 | "outputs": [
|
225 | 221 | {
|
|
245 | 241 | },
|
246 | 242 | {
|
247 | 243 | "cell_type": "markdown",
|
248 |
| - "id": "cf5b994a-2434-43df-8e37-c063f1fbe3ce", |
| 244 | + "id": "48237011-bd39-4481-8df7-5264620aa6f3", |
249 | 245 | "metadata": {},
|
250 | 246 | "source": [
|
251 | 247 | "For a full list of attributes, see the [`IBMBackend` API documentation](/docs/api/qiskit-ibm-runtime/ibm-backend)."
|
252 | 248 | ]
|
253 | 249 | },
|
254 | 250 | {
|
255 | 251 | "cell_type": "markdown",
|
256 |
| - "id": "fe84b143-8a73-4bd9-b6a4-b3a023e72964", |
| 252 | + "id": "c7c38144-478e-4c31-b050-82078de0f505", |
257 | 253 | "metadata": {},
|
258 | 254 | "source": [
|
259 | 255 | "## Dynamic backend information\n",
|
|
269 | 265 | {
|
270 | 266 | "cell_type": "code",
|
271 | 267 | "execution_count": 6,
|
272 |
| - "id": "f1a82580-cd98-4654-94d2-eec8ccc9f7ad", |
| 268 | + "id": "94da1ff9-d491-4d78-8720-29141ab1dddf", |
273 | 269 | "metadata": {},
|
274 | 270 | "outputs": [
|
275 | 271 | {
|
|
289 | 285 | },
|
290 | 286 | {
|
291 | 287 | "cell_type": "markdown",
|
292 |
| - "id": "f96efd0b-3d35-4ab5-b7b1-ef182c6eed31", |
| 288 | + "id": "1d3002ef-e196-4d02-b0d7-b84d1a75ce30", |
293 | 289 | "metadata": {},
|
294 | 290 | "source": [
|
295 | 291 | "### Instruction properties\n",
|
|
300 | 296 | {
|
301 | 297 | "cell_type": "code",
|
302 | 298 | "execution_count": 7,
|
303 |
| - "id": "582de91f-62b4-464c-b9c8-f84af948a06a", |
| 299 | + "id": "dc15db13-bf2a-4934-8ef6-cacfb953fde6", |
304 | 300 | "metadata": {},
|
305 | 301 | "outputs": [
|
306 | 302 | {
|
|
320 | 316 | },
|
321 | 317 | {
|
322 | 318 | "cell_type": "markdown",
|
323 |
| - "id": "d5da7085-163f-4cdc-930a-4fc00832480a", |
| 319 | + "id": "2d304e9f-6e76-4876-bbb2-b6b768f3f9e3", |
324 | 320 | "metadata": {},
|
325 | 321 | "source": [
|
326 | 322 | "The following cell shows the properties for a measurement operation (including the readout error) on qubit 0."
|
|
329 | 325 | {
|
330 | 326 | "cell_type": "code",
|
331 | 327 | "execution_count": 8,
|
332 |
| - "id": "f6b9e34e-2ef7-4340-8e33-828dd18c8e9d", |
| 328 | + "id": "810d55d0-2f60-4bce-a1c2-254e2b989b90", |
333 | 329 | "metadata": {},
|
334 | 330 | "outputs": [
|
335 | 331 | {
|
|
349 | 345 | },
|
350 | 346 | {
|
351 | 347 | "cell_type": "markdown",
|
352 |
| - "id": "2385a454-d097-4f63-925f-8609433f3bd7", |
| 348 | + "id": "4ba1c604-b4b9-498d-ac29-9cb3a9644e09", |
353 | 349 | "metadata": {},
|
354 | 350 | "source": [
|
355 | 351 | "## Next steps\n",
|
|
0 commit comments