Serialization of dataclasses
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with the issue's UCJ operator example, including np.savez_compressed, np.load, and UCJOpSpinBalanced, to understand the desired save/load behavior. Define which classes and data structures are in scope, then verify that representative classes can be saved and reconstructed without manually listing every field.
Written by the indexing model from the issue text.
Description
We should support saving and loading most classes. Here is an example of what I've used for the UCJ operators:
np.savez_compressed(
operator_path,
diag_coulomb_mats=lucj_op.diag_coulomb_mats,
orbital_rotations=lucj_op.orbital_rotations,
final_orbital_rotation=lucj_op.final_orbital_rotation,
)
operator_data = np.load(data_dir / lucj_operator_task.dirpath / "operator.npz")
lucj_op = ffsim.UCJOpSpinBalanced(
diag_coulomb_mats=operator_data["diag_coulomb_mats"],
orbital_rotations=operator_data["orbital_rotations"],
final_orbital_rotation=operator_data["final_orbital_rotation"],
)
- Dominant language
- Python
- Stars
- 116
- Forks
- 50
- Avg merge
- 2h 1m
- Merged PRs (30d)
- 8
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Qiskit/ffsim
-
LUCJ pass manager raises NoEdgeBetweenNodes when an edge is bad for two two-qubit gatesPossibly taken @hat-im claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Support Python 3.15Openneeds upstream change
Difficulty 3/5 1-2 days Newbie friendliness 20/100
Maintainers usually reply within 1 day
-
Add guide for computing RDMsMay be free again A pull request for this issue was closed without being merged. Opendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Qiskit/ffsim#672 · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
mozilla-ai/cq#601 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
intcomma returns exponential notation for large floatsPossibly taken @Omarinho12345 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
python-humanize/humanize#521 ·
Maintainers usually reply within 1 day
-
opensubtitlescom: provider rejects pt-PT even though its own converter maps itPossibly taken @paulo-0308 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Diaoul/subliminal#1405 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100