Skip to content

fix bug in real-time qubit selection tutorial #3320

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

Merged
merged 4 commits into from
Jun 20, 2025
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -461,17 +461,17 @@
"metadata": {},
"source": [
"### Execute a quantum circuit with default qubit selection\n",
"As a reference result of performance, we'll take a look at an example of executing a quantum circuit on a QPU by using the default qubits, that is the qubits selected with the reported backend properties."
"As a reference result of performance, we'll execute a quantum circuit on a QPU by using the default qubits, which are the qubits selected with the requested backend properties. We will use `optimization_level = 3`. This setting includes the most advanced transpilation optimization, and uses target properties (like operation errors) to select the best performing qubits for execution."
]
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "5c0d09ad-2e6a-4067-8034-8df92a475ff1",
"metadata": {},
"outputs": [],
"source": [
"pm = generate_preset_pass_manager(target=backend.target, optimization_level=0)\n",
"pm = generate_preset_pass_manager(target=backend.target, optimization_level=3)\n",
"isa_circuits = pm.run(circuits)\n",
"initial_qubits = [\n",
" [\n",
Expand Down Expand Up @@ -598,7 +598,7 @@
" )\n",
"\n",
" # transpile circuits to updated target\n",
" pm = generate_preset_pass_manager(target=target, optimization_level=0)\n",
" pm = generate_preset_pass_manager(target=target, optimization_level=3)\n",
" isa_circuit_updated = pm.run(circuits)\n",
" updated_qubits = [\n",
" [\n",
Expand Down
Loading