Cirq Job __repr__ method
还没有人认领这个 Issue。
评估
调研方向
首先定位该 package 的 Job 类,并将其 repr 行为与 issue 中链接的 Cirq gate 和 operation 指南进行比较。检查所引用的 cirq_ionq/job.py 实现,并与维护者确认预期的表示形式;完成的标准是已实现并验证双方约定的 Job 表示形式。
由索引模型根据 Issue 内容生成。
描述
@vtomole pointed out that the Job.__repr__ method should be modified according to the following:
The class has a repr method that produces a python expression that evaluates to an object equal to the original value. The expression assumes that cirq, sympy, numpy as np, and pandas as pd have been imported.
If the repr is cumbersome, gates should specify a repr_pretty method. This method will be used preferentially by Jupyter notebooks, ipython, etc.
@vtomole, I was wondering if the above is a correct recap of our conversation, could you please verify? Also, is it a correct observation that cirq_ionq.Job is similarly missing a __repr__ method? See: https://github.com/quantumlib/Cirq/blob/1f14edf6bae39b4146e3f25f04ca4f26effc6773/cirq-ionq/cirq_ionq/job.py#L247
- 主要语言
- Python
- 星标
- 160
- 派生
- 113
- 平均合并
- 6 天 23 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/azure-quantum-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 38/100
-
Export types 未关闭
难度 2/5 1-3 小时 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 38/100
microsoft/azure-quantum-python#650 · 1 条评论 ·
-
azure-quantum
难度 2/5 1-3 小时 新手友好度 20/100
查看 microsoft/azure-quantum-python 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
sublimehq/package_control#1780 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·