Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

shubhusion
Copy link
Contributor

Fixes #957

Improves Docstrings and Remove Markdown errors.

Copy link

codecov bot commented May 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.90%. Comparing base (9fdc8cb) to head (67c53af).

Current head 67c53af differs from pull request most recent head e45d683

Please upload reports for the commit e45d683 to get more accurate results.

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.
📢 Have feedback on the report? Share it here.

@shubhusion shubhusion changed the title Improve docstrings for "task/bloqade" [Unitary hack] Improve docstrings for "task/bloqade" May 31, 2024
Copy link
Member

@Roger-luo Roger-luo left a 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.

@shubhusion
Copy link
Contributor Author

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 ?

@Roger-luo
Copy link
Member

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.

@shubhusion
Copy link
Contributor Author

@Roger-luo I have made changes in this PR as requested by you.

Copy link
Member

@Roger-luo Roger-luo left a 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:
"""
Copy link
Member

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":

"""
Copy link
Member

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.

@weinbe58 weinbe58 closed this Aug 2, 2024
@shubhusion shubhusion deleted the patch-5 branch August 5, 2024 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve docstrings
3 participants