Skip to content

Commit

Permalink
Remove deprecated parameter (Qiskit#2485)
Browse files Browse the repository at this point in the history
closes Qiskit#2451

---------

Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
  • Loading branch information
beckykd and frankharkins authored Dec 17, 2024
1 parent dfcec06 commit 91bce99
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions docs/guides/defaults-and-configuration-options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@
"- `backend` (Backend) - If this is set, the transpiler compiles the input circuit to this device. If any other option is set that impacts these settings, such as `coupling_map`, it overrides the settings from `backend`.\n",
"- `target` (Target) - A backend transpiler target. Normally this is specified as part of the backend argument, but if you manually constructed a Target object, you can specify it here. This overrides the target from `backend`.\n",
"- `backend_properties` (BackendProperties) - Properties returned by a QPU, including information on gate errors, readout errors, qubit coherence times, and so on. Find a QPU that provides this information by running `backend.properties()`.\n",
"- `instruction_durations` (List[Tuple[str, Iterable[int], float, Iterable[float], str]] | List[Tuple[str, Iterable[int], float, Iterable[float]]] | List[Tuple[str, Iterable[int], float, str]] | List[Tuple[str, Iterable[int], float]] | InstructionDurations) - Durations of instructions. Applicable only if `scheduling_method` is specified. The gate lengths defined in `backend.properties` are used by default. They are overwritten if `instruction_durations` is specified. The `instruction_durations` format must be as follows. The instruction_durations must be given as a list of tuples [(instruction_name, qubits, duration, unit), …]. | [(`cx`, [0, 1], 12.3, `ns`), (`u3`, [0], 4.56, `ns`)] | [(`cx`, [0, 1], 1000), (`u3`, [0], 300)]. If `unit` is omitted, the default is `dt`, which is a sample time depending on the QPU. If the time unit is `dt`, the duration must be an integer.\n",
"- `timing_constraints` (Dict[str, int] | None) - An optional control hardware restriction on instruction time resolution. This information is provided by the QPU configuration. If the QPU doesn’t have any restriction on the instruction time allocation, `timing_constraints` is `None` and no adjustment is performed. A QPU might report a set of restrictions, namely:\n",
" - `granularity`: An integer value representing the minimum pulse gate resolution in units of dt. A user-defined pulse gate should have a duration that is a multiple of this granularity value.\n",
" - `min_length`: An integer value representing the minimum pulse gate length in units of dt. A user-defined pulse gate should be longer than this length.\n",
Expand Down Expand Up @@ -263,24 +262,12 @@
"cell_type": "code",
"execution_count": 3,
"id": "bcaab4a6",
"metadata": {
"tags": [
"ignore-warnings"
]
},
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/tmp/ipykernel_1917/204530856.py:1: DeprecationWarning: ``qiskit.transpiler.preset_passmanagers.generate_preset_pass_manager.generate_preset_pass_manager()``'s argument ``instruction_durations`` is deprecated as of Qiskit 1.3. It will be removed in Qiskit 2.0. The `target` parameter should be used instead. You can build a `Target` instance with defined instruction durations with `Target.from_configuration(..., instruction_durations=...)`\n",
" generate_preset_pass_manager(\n"
]
},
{
"data": {
"text/plain": [
"<qiskit.transpiler.passmanager.StagedPassManager at 0x7fbbdd07a550>"
"<qiskit.transpiler.passmanager.StagedPassManager at 0x193c636b290>"
]
},
"execution_count": 3,
Expand All @@ -296,7 +283,6 @@
" basis_gates=None,\n",
" inst_map=None,\n",
" coupling_map=None,\n",
" instruction_durations=None,\n",
" backend_properties=None,\n",
" timing_constraints=None,\n",
" initial_layout=None,\n",
Expand Down

0 comments on commit 91bce99

Please sign in to comment.