-
Notifications
You must be signed in to change notification settings - Fork 3
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
Initial version of docs + HQAR -> QART rename #5
Conversation
Just from trying to run it:
|
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.
Overall looks good, some minor comments.
However, it seems to me that a couple of things are missing (perhaps you want to add them in a separate PR, if that's the case it's fine):
- The following are undocumented:
resources
,input_params
,local_variables
,linked_params
,meta
- The big AliasSampling example is missing
- It would be good to also have a section in the docs about known limitations, such as repetitions or mid-circuit measurements. Or the fact that it's not intended to be executable.
|
||
Representing such a circuit as a graph is straightforward, it might look like this: | ||
|
||
![example_routine](images/basic_program.svg) |
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.
[issue] I think you forgot to add some of the pictures.
docs/format.md
Outdated
- `name`: Mandatory name of the program, here set to the string `my_program`. | ||
- `ports`: A collection of ports. For most of the time, not much is lost by | ||
thinking of them as of quantum registers. | ||
- `children`: A list of children, or subroutines of the program. |
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.
"," after subroutines.
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.
Fixed in d2b5e87
|
||
Ports, like most other components in QART, have names, which should be distinct | ||
among all ports of any given program (or subroutine). Each port also has | ||
direction, which can be either `input` or `output`. Finally, each port has size. |
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.
It can also be through
.
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 rather not mention through
at this point because:
- We don't support
through
in compilation. - We don't support
through
when drawing. - We doin't have example using
through
.
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.
That's fine. You got me with the doin't
.
Thanks @mstechly ! I added missing images and applied your suggestions. As for the missing content, I plan to add it in a separate PR, because I didn't want to further delay this already late one. |
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.
Looks good now!
* Add docs stub * Add language server info to mkdocs.yml * Add basic docs structure * Add basic program/circuit example * Add short desription of QART format * Add API reference * Update mkdocs.yml * Remove copyright notices * Rename hqar package to qart * Remove copyright checks * Remove remaining copyright notices * Reorganize chapter on QART Python library * Add content to index.md * Add required plugins * Reorganize docs for python library * Remove whitespace * Update example yaml and svg (my_algorithm -> my_program) * Add basic development guide * Update links in index.md * Add docs-related dependencies * Add more descriptions to format chapter * Add job for building docs * Attempt running mkdocs through poetry run * Add missing dependency on mkdocstrings * Apply changes suggested in the review * Add missing images
This PR renames HQAR to QART (both in Python package and in other places like e.g. README) and adds basic documentation built with mkdocs.
To install dependencies needed for docs use
poetry
To run local app serving docs run:
To build docs run:
Things that are missing in this PR (and will be added later):
resources
andlinked_params
.