-
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.
Browse files
Browse the repository at this point in the history
* fix serialization of primitives * Update releasenotes/notes/fix-serialization-primitives-c1e44a37cfe7a32a.yaml Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * rm tests * Update releasenotes/notes/fix-serialization-primitives-c1e44a37cfe7a32a.yaml Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Matthew Treinish <mtreinish@kortar.org> (cherry picked from commit a4a6be0) Co-authored-by: Ikko Hamamura <ikkoham@users.noreply.github.com>
- Loading branch information
1 parent
620927e
commit 775ac1e
Showing
4 changed files
with
16 additions
and
2 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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/fix-serialization-primitives-c1e44a37cfe7a32a.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,8 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixed an issue with the primitive classes, :class:`~.BackendSampler` and :class:`~.BackendEstimator`, | ||
where instances were not able to be serialized with ``pickle``. In general these classes are not guaranteed | ||
to be serializable as :class:`~.BackendV2` and :class:`~.BackendV1` instances are not required to be | ||
serializable (and often are not), but the class definitions of :class:`~.BackendSampler` and | ||
:class:`~.BackendEstimator` no longer prevent the use of ``pickle``. |
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