-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Improve QkCircuit C API docs #14259
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
Improve QkCircuit C API docs #14259
Conversation
This commit adds some more details to the C API docs for the new QkCircuit struct which was added in Qiskit#14006.
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 14968441393Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Co-authored-by: Julien Gacon <gaconju@gmail.com>
This is a bit surprising, since this is how we document members in the other structs (e.g. |
Co-authored-by: Julien Gacon <gaconju@gmail.com>
I think adding the .. doxygengroup:: QkCircuit
:members: Also, should the struct be under "Functions"? What do you think about adding another section called "Structs" or "Data types"? |
@frankharkins Thanks that was what was missing I've reworked things a bit based on your suggestion and I think the structure of things is a lot better now. |
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 checked the rendered docs and the page appears and looks great 👍🏻
* Improve QkCircuit C API docs This commit adds some more details to the C API docs for the new QkCircuit struct which was added in Qiskit#14006. * Apply suggestions from code review Co-authored-by: Julien Gacon <gaconju@gmail.com> * Update docs/cdoc/qk-circuit.rst Co-authored-by: Julien Gacon <gaconju@gmail.com> * Add members option to doxygen group * Split out data structs in docs * Expand on current limitations of API in docs * Other docstring fixes * C docs don't have cross refs --------- Co-authored-by: Julien Gacon <gaconju@gmail.com>
Summary
This commit adds some more details to the C API docs for the new QkCircuit struct which was added in #14006.
Details and comments
TODO:
QkCircuitInstruction
(they're inline docstrings, but those docstrings seem to be getting lost in theRust -> C Header -> Breathe -> Sphinx path