Serialization of dataclasses
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 issue 中的 UCJ 算子示例开始,包括 np.savez_compressed、np.load 和 UCJOpSpinBalanced,以了解所需的保存/加载行为。确定哪些类和数据结构属于范围,然后验证代表性类可以在无需手动列出每个字段的情况下进行保存和重建。
由索引模型根据 Issue 内容生成。
描述
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"],
)
- 主要语言
- Python
- 星标
- 116
- 派生
- 50
- 平均合并
- 2 小时 1 分钟
- 30 天内合并 PR
- 8
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Qiskit/ffsim 的其他 Issue
-
LUCJ pass manager raises NoEdgeBetweenNodes when an edge is bad for two two-qubit gates可能已有人在做 @hat-im 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
needs upstream change
难度 3/5 1-2 天 新手友好度 20/100
维护者通常 1 天内回复
-
Add guide for computing RDMs可能重新可做 关联的 PR 已关闭且未合并。 未关闭documentation
难度 2/5 1-3 小时 新手友好度 35/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
Qiskit/ffsim#672 · 1 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
Layout accepts a step threshold of 0 or less, then in-toto-verify crashes with StopIteration可能已有人在做 @BahaaMattar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
needs discussion
难度 2/5 1-3 小时 新手友好度 78/100
openfga/openfga.dev#1436 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
usb-device-hid: MouseInterface reports bInterfaceProtocol 1 (keyboard) instead of 2可能已有人在做 @Duhan07 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
micropython/micropython-lib#1176 ·