-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
QuantumCircuit.assign_parameters
docstring (#6546)
* Fix docstring of assign_parameters and remove the deprecated arguments, as they have been deprecated > 3months ago * add reno * lint * lint * lint! Co-authored-by: Kevin Krsulich <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
40d7ee2
commit 09f9c10
Showing
3 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/remove-deprecated-assign-parameters-args-9712d7d01e82c390.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
upgrade: | ||
- | | ||
Delete the arguments `param_dict` in :meth:`qiskit.circuit.QuantumCircuit.assign_parameters` | ||
and `value_dict` in :meth:`qiskit.circuit.QuantumCircuit.bind_parameters`, which have been | ||
deprecated in [PR 5759](https://github.com/Qiskit/qiskit-terra/pull/5759). Instead, | ||
use the arguments `parameters` resp. `values`. | ||
fixes: | ||
- | | ||
Fix the statement about the parameter order if the parameters are provided as | ||
iteratble and not dictionary in | ||
:meth:`qiskit.circuit.QuantumCircuit.assign_parameters`. The parameters are not | ||
sorted by insertion but by name, with the special case that the order of a | ||
:class:`~qiskit.circuit.ParameterVector` is maintained. |