-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Unitary hack] Improve docstrings for "task/bloqade" #973
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #973 +/- ##
=======================================
Coverage 89.90% 89.90%
=======================================
Files 110 110
Lines 8132 8132
=======================================
Hits 7311 7311
Misses 821 821 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend to finish one of the PRs first instead of submitting a bunch of them to review, so you don't waste any effort and we don't need to review similar issues multiple times. The docstrings in tasks are harder to write as they are deeper in the codebase. I'd recommend you to go through some basic tutorial before going ahead so we make docstring friendly to new comers other than just plain explanation of what the code does.
@Roger-luo can you provide a link to tutorials which i can refer to ? |
https://queracomputing.github.io/bloqade-python-examples/latest/ you can also check the quick start guide in the documentation homepage to understand better what this package does. |
@Roger-luo I have made changes in this PR as requested by you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to finish one PR before requesting reviews on multiple ones, otherwise this will result in duplicated review comments that are hard to manage.
shots: int | ||
emulator_ir: EmulatorProgram | ||
metadata: Dict[str, ParamType] | ||
compile_cache: Optional[CompileCache] = None | ||
task_result_ir: Optional[QuEraTaskResults] = None | ||
|
||
def _geometry(self) -> Geometry: | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a private function
@@ -47,7 +83,22 @@ def run( | |||
nsteps: int = 2_147_483_647, | |||
interaction_picture: bool = False, | |||
) -> "BloqadeTask": | |||
|
|||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also add one example to demonstrate how this function can be used. This is a user API.
Fixes #957
Improves Docstrings and Remove Markdown errors.