Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get-backend-information.ipynb #506

Merged
merged 4 commits into from
Dec 14, 2023
Merged
Changes from 2 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
48 changes: 30 additions & 18 deletions docs/run/get-backend-information.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@
"data": {
"text/plain": [
"[<IBMBackend('ibmq_qasm_simulator')>,\n",
" <IBMBackend('simulator_mps')>,\n",
" <IBMBackend('simulator_statevector')>,\n",
" <IBMBackend('ibm_lagos')>,\n",
" <IBMBackend('ibm_perth')>,\n",
" <IBMBackend('ibmq_mumbai')>,\n",
" <IBMBackend('ibm_hanoi')>,\n",
" <IBMBackend('ibm_osaka')>,\n",
" <IBMBackend('ibm_cusco')>,\n",
" <IBMBackend('ibm_sherbrooke')>,\n",
" <IBMBackend('ibm_nazca')>,\n",
" <IBMBackend('ibm_kyoto')>,\n",
" <IBMBackend('ibm_cairo')>,\n",
" <IBMBackend('ibmq_kolkata')>,\n",
" <IBMBackend('ibm_brisbane')>,\n",
" <IBMBackend('simulator_extended_stabilizer')>,\n",
" <IBMBackend('simulator_stabilizer')>,\n",
" <IBMBackend('ibm_nairobi')>]"
" <IBMBackend('ibm_algiers')>,\n",
" <IBMBackend('ibm_torino')>]"
]
},
"execution_count": 1,
Expand Down Expand Up @@ -100,10 +104,18 @@
{
"data": {
"text/plain": [
"[<IBMBackend('ibm_lagos')>,\n",
" <IBMBackend('ibm_perth')>,\n",
"[<IBMBackend('ibmq_mumbai')>,\n",
" <IBMBackend('ibm_hanoi')>,\n",
" <IBMBackend('ibm_osaka')>,\n",
" <IBMBackend('ibm_cusco')>,\n",
" <IBMBackend('ibm_sherbrooke')>,\n",
" <IBMBackend('ibm_nazca')>,\n",
" <IBMBackend('ibm_kyoto')>,\n",
" <IBMBackend('ibm_cairo')>,\n",
" <IBMBackend('ibmq_kolkata')>,\n",
" <IBMBackend('ibm_brisbane')>,\n",
" <IBMBackend('ibm_nairobi')>]"
" <IBMBackend('ibm_algiers')>,\n",
" <IBMBackend('ibm_torino')>]"
]
},
"execution_count": 3,
Expand Down Expand Up @@ -162,15 +174,15 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Name: ibm_lagos\n",
"Name: ibm_kyoto\n",
"Version: 2\n",
"No. of qubits: 7\n",
"No. of qubits: 127\n",
"\n"
]
}
],
"source": [
"backend = service.backend(\"ibm_lagos\")\n",
"backend = service.backend(\"ibm_kyoto\")\n",
"\n",
"print(\n",
" f\"Name: {backend.name}\\n\"\n",
Expand Down Expand Up @@ -208,7 +220,7 @@
{
"data": {
"text/plain": [
"IBMQubitProperties(t1=0.00010568006375765179, t2=3.753491927659795e-05, frequency=5235355398.037262, anharmonicity=-339867138.55915606)"
"IBMQubitProperties(t1=0.00016855861574467424, t2=2.3453094185862303e-05, frequency=4908867208.080845, anharmonicity=-308028796.19250304)"
]
},
"execution_count": 6,
Expand All @@ -226,7 +238,7 @@
"source": [
"### Instruction properties\n",
"\n",
"The `backend.target` attribute is a `qiskit.transpiler.Target` object: an object that contains all the information needed to transpile a circuit for that backend. This includes instruction errors and durations. For example, the following cell gets the properties for a `cx` gate acting between qubits 0 and 1."
"The `backend.target` attribute is a `qiskit.transpiler.Target` object: an object that contains all the information needed to transpile a circuit for that backend. This includes instruction errors and durations. For example, the following cell gets the properties for an [`ecr` gate](/api/qiskit/qiskit.circuit.library.ECRGate) acting between qubits 1 and 0."
]
},
{
Expand All @@ -237,7 +249,7 @@
{
"data": {
"text/plain": [
"InstructionProperties(duration=5.76e-07, error=0.010379675306311759, calibration=Schedule cx)"
"InstructionProperties(duration=6.6e-07, error=0.020534632893441818, calibration=Schedule ecr)"
]
},
"execution_count": 7,
Expand All @@ -246,7 +258,7 @@
}
],
"source": [
"backend.target[\"cx\"][(0,1)]"
"backend.target[\"ecr\"][(1,0)]"
]
},
{
Expand All @@ -264,7 +276,7 @@
{
"data": {
"text/plain": [
"InstructionProperties(duration=7.893333333333333e-07, error=0.011199999999999988, calibration=Schedule measure)"
"InstructionProperties(duration=1.4e-06, error=0.11159999999999992, calibration=Schedule measure)"
]
},
"execution_count": 8,
Expand Down