forked from Qiskit/rustworkx
-
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.
Add pickle support to custom return types (Qiskit#213)
* Add pickle support to custom return types In recent releases we have started to add custom return types instead of returning lists of of objects to avoid the overhead of converting large lists from rust to python. However, these custom return types were missing support for pickling, which was causing issue for places where they were being used with Python's multiprocessing or deepcopy. This has caused issues in places where a list was returned before. This commit fixes this by adding the necessary methods to the custom return classes to enable python to pickle them so they can avoid these issues. * Bump version string to prepare for bugfix release * Fix test lint
- Loading branch information
Showing
6 changed files
with
116 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "retworkx" | ||
description = "A python graph library implemented in Rust" | ||
version = "0.7.0" | ||
version = "0.7.1" | ||
authors = ["Matthew Treinish <[email protected]>"] | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
|
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
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 |
---|---|---|
|
@@ -514,7 +514,6 @@ fn bfs_successors( | |
} | ||
Ok(iterators::BFSSuccessors { | ||
bfs_successors: out_list, | ||
index: 0, | ||
}) | ||
} | ||
|
||
|
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