forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Right before the 0.18.0 release we reverted Qiskit#6546 because it was a bit too quick to complete a deprecation. Now that 0.18.0 has been released we can now remove the deprecated functionality and this commit reverts PR Qiskit#6696 which just re-applies Qiskit#6546. This reverts commit 1104041.
- Loading branch information
Showing
3 changed files
with
25 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
21 changes: 21 additions & 0 deletions
21
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,21 @@ | ||
--- | ||
upgrade: | ||
- | | ||
The deprecated argument ``param_dict`` of the | ||
:meth:`~qiskit.circuit.QuantumCircuit.assign_parameters` method of the | ||
:class:`~qiskit.circuit.QuantumCircuit` class has been removed and no | ||
longer exists. This argument was deprecated as part of the 0.17.0 release. | ||
Instead you should use the ``parameters`` argument on the method. | ||
- | | ||
The deprecated argument ``value_dict`` | ||
of the :meth:`qiskit.circuit.QuantumCircuit.bind_parameters` method of the | ||
:class:`~qiskit.circuit.QuantumCircuit` class has been removed and no | ||
longer exist. These arguments were deprecated as part of the 0.17.0 release. | ||
Instead you should use the ``values`` argument on the method. | ||
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. |