forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow arbitrary iterables in
assign_parameters
(Qiskit#12887)
In Qiskit 1.1, it was possible to give any object that was iterable and had a `__len__` as the binding sequence for `assign_parameters`. The move to Rust space inadvertantly limited that to things that fulfilled the sequence API. This commit restores the ability to use general iterables, and removes the need to have a `__len__`.
- Loading branch information
1 parent
6663db1
commit 9de8119
Showing
3 changed files
with
39 additions
and
15 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
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