Bug (likely typo) in `core/serialize/serializer_test.py`
维护者通常 4 天内回复
评估
这个 Issue 还没有评估数据。
描述
In test_serialize_circuit_wrong_type and test_deserialize_circuit_wrong_type, the tests pass input to serializer.serialize_circuit and serializer.deserialize_circuit, but this is incorrect; it should be passing inp.
@parameterized.parameters([{'inp': v} for v in ['wrong', 1.0, None, []]])
def test_serialize_circuit_wrong_type(self, inp):
"""Attempt to serialize invalid objects types."""
with self.assertRaises(TypeError):
serializer.serialize_circuit(input) # <<<<<<<<<< here
@parameterized.parameters([{'inp': v} for v in ['wrong', 1.0, None, []]])
def test_deserialize_circuit_wrong_type(self, inp):
"""Attempt to deserialize invalid objects types."""
with self.assertRaises(TypeError):
serializer.deserialize_circuit(input) # <<<<<<<<<< here
- 主要语言
- Python
- 星标
- 2.2k
- 派生
- 671
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tensorflow/quantum 的其他 Issue
-
Avoid hard-coding "quantum" in `scripts/` scripts可能已有人在做 @openbotgit 于 12 天前认领。 未关闭area/devops help wanted no QC knowledge needed priority/before-0.7.7
难度 2/5 1-3 小时 新手友好度 68/100
tensorflow/quantum#1082 · 2 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
-
Support Keras 3可能重新可做 @rosspeili 于 107 天前认领,目前没有进行中的 PR。 未关闭area/keras help wanted skill-level/intermediate
tensorflow/quantum#1090 · 5 条评论 · 已指派 1 人 ·
维护者通常 4 天内回复
-
area/circuits priority/after-0.7.7 skill-level/expert
难度 5/5 一周以上 新手友好度 25/100
tensorflow/quantum#1087 ·
维护者通常 4 天内回复
-
Efficiently handle circuit sizes 10x or more of today's circuits可能重新可做 @SripriyaDevarapalli 于 27 天前认领,目前没有进行中的 PR。 未关闭area/circuits area/performance help wanted priority/after-0.7.7 skill-level/expert
难度 5/5 一周以上 新手友好度 25/100
tensorflow/quantum#1086 · 1 条评论 ·
维护者通常 4 天内回复
-
area/health no QC knowledge needed priority/after-0.7.7
难度 3/5 1-2 天 新手友好度 55/100
tensorflow/quantum#1083 · 1 条评论 ·
维护者通常 4 天内回复
查看 tensorflow/quantum 的全部 Issue
相似的 Issue
-
ReadQwen3PaperTask5 rejects correct answers that differ only in order, case, or underscore form可能已有人在做 @Kingpython123 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 90/100
Tongyi-MAI/MobileWorld#72 ·
-
_threads/application: Update typing annotations using `pyupgrade --py311-plus`可能已有人在做 @gudnimg 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Health probes return 401 when authentication is enabled and the API is served under /orb可能已有人在做 @fgogolli 今天认领。 未关闭area: api priority: p2 size: S type: bug
难度 2/5 半天 新手友好度 75/100
finos/open-resource-broker#704 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
BCDA-APS/polar-bits#93 ·
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
GoogleCloudPlatform/gce-rescue#218 ·
维护者通常 2 天内回复