-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Update the circuit library docs #13520
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
Conversation
e.g. why we use different gate types and what's the advantages
Pull Request Test Coverage Report for Build 14103023447Warning: 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 |
Currently all the standard gates are ordered alphabetically. Does it make sense to order them according to the number of qubits (0,1,2,3,many) and then maybe according to the number of parameters (0,1,2,3)? |
copy here a comment about organizing the oracles (grover, phase, bitflip) in their own section: |
Since this is just documentation it can merge after 2.0.0rc1 is tagged before the final release. I've pre-emptively tagged it as stable backport potential because we'll need to backport it to |
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's a great start! need to rebase with main branch. I also have some comments.
One or more of the following people are relevant to this code:
|
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.
Nicely written! I only have a few comments.
qiskit/circuit/library/__init__.py
Outdated
Elements in the circuit library are provided as :class:`.QuantumCircuit`\ s or | ||
:class:`~.circuit.Instruction`\ s, allowing them to be easily investigated or plugged into other | ||
circuits. This enables fast prototyping and circuit design circuit at higher levels of abstraction. |
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.
Elements in the circuit library are provided as :class:`.QuantumCircuit`\ s or | |
:class:`~.circuit.Instruction`\ s, allowing them to be easily investigated or plugged into other | |
circuits. This enables fast prototyping and circuit design circuit at higher levels of abstraction. | |
The components in the circuit library are either :class:`.QuantumCircuit`\ s or | |
:class:`~.circuit.Instruction`\ s, allowing them to be easily manipulated and plugged into other | |
circuits. This enables fast prototyping and circuit design at higher levels of abstraction. |
Thank you Elena! Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
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.
LGTM too. Just to be sure, did you also want to address the missing TO-DOs? (this can anyways be done in a follow-up)
Todo's are for a follow up, thanks! 🙂 |
* Explain circlib design e.g. why we use different gate types and what's the advantages * separate old circuits and new gates * alt text & broken links * Apply suggestions from code review Thank you Elena! Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> * more review comments --------- Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> (cherry picked from commit 4675335)
* Explain circlib design e.g. why we use different gate types and what's the advantages * separate old circuits and new gates * alt text & broken links * Apply suggestions from code review Thank you Elena! Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> * more review comments --------- Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> (cherry picked from commit 4675335) Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
e.g. why we use different gate types and what's the advantages
Summary
With #13046 the designated workflow with the circuit library changed. This PR adds a section to the docs explaining this new structure. While not fully done, I'm already opening this draft PR for people to have a look at the text.
Details and comments
This includes some other minor changes:
get_standard_gate_name_mapping
underStandard gates
To do