-
Notifications
You must be signed in to change notification settings - Fork 86
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
Qiskit API: group modules into logical sections #1211
Comments
This was referenced Apr 19, 2024
This comment was marked as outdated.
This comment was marked as outdated.
github-merge-queue bot
pushed a commit
that referenced
this issue
Apr 25, 2024
Closes #1212. As explained there, this is because: 1. Qiskit SDK is getting a bigger revamp in #1211 and it will also flatten submodules, so we want to be consistent. 2. The module list is so short that it's useful to have the navbar be flatter. It makes things less crowded and more discoverable. Note that some of the Runtime provider pages aren't very useful...I opened #1240 to track that. For now, this is implemented as the `Pkg` constructor setting a boolean argument for whether modules should be nested or not. I'm coming up with an alternative—but similar factoring—while working on #1211. This PR is ~prework. <img width="253" alt="Screenshot 2024-04-24 at 4 02 34 PM" src="https://github.com/Qiskit/documentation/assets/14852634/2bbbaa7f-e187-4170-b2c5-02273e340b07"> <img width="257" alt="Screenshot 2024-04-24 at 4 02 10 PM" src="https://github.com/Qiskit/documentation/assets/14852634/53816ee2-f7ee-4d1d-90a5-64d7795fd776">
This was referenced Apr 26, 2024
Module list when you include 0.19 up to 1.0Circuit construction
Quantum Information (qiskit.quantum_info)
Transpilation
Primitives and providers
Results and visualisations
Opflow
Serialization (OpenQASM and QPy)
Pulse-level programming
qiskit.execute Other
Qiskit Aer
IBM Q Provider
Algorithms
Qiskit Aqua
Qiskit Ignis
Finance
Chemistry
Machine Learning
Optimization
|
This was referenced Apr 29, 2024
github-merge-queue bot
pushed a commit
that referenced
this issue
Apr 30, 2024
## Problem This is how Qiskit 0.19 looks: <img width="260" alt="Screenshot 2024-04-29 at 5 00 14 PM" src="https://github.com/Qiskit/documentation/assets/14852634/151d56df-09d2-47c6-885b-a8ce6f6e931a"> The three `qiskit` entries are: https://docs.quantum.ibm.com/api/qiskit/0.19 https://docs.quantum.ibm.com/api/qiskit/0.19/ibmq-provider https://docs.quantum.ibm.com/api/qiskit/0.19/aqua 0.19 is the only version like that, e.g. Qiskit 0.24 doesn't have duplicates: <img width="266" alt="Screenshot 2024-04-29 at 5 00 36 PM" src="https://github.com/Qiskit/documentation/assets/14852634/93f4c64e-7427-41d3-9deb-ae8f5ebcd758"> In 0.19 docs, the first two `qiskit` entries are index pages for Qiskit Aqua and Qiskit IBMQ Provider. Those are index pages that simply list all modules, rather than module overview pages that describe the modules `qiskit.aqua` and `qiskit.providers.ibmq`. Having the three duplicate `qiskit` entries is going to be a problem with #1211 when we group modules. ## Solution I simply deleted the two index files from the HTML and regenerated the docs. If we like this PR, I will upload that HTML change to Box. I went with deletion because it's the simplest fix. We don't have these index pages in every version after 0.19, and it works fine. #1211 will also help with module discovery through better grouping. We could instead rewrite the HTML for the two problematic files, but I figured it's fine to do the simpler approach that's consistent with later versions.
github-merge-queue bot
pushed a commit
that referenced
this issue
May 7, 2024
Closes #1211. See Qiskit/qiskit#12333 for the sibling PR in Qiskit. We'll land the test #1300 once both PRs have landed. This uses the same grouping as #1211 (comment), if people prefer reviewing the list over code. Before: <img width="254" alt="Screenshot 2024-05-01 at 10 27 43 AM" src="https://github.com/Qiskit/documentation/assets/14852634/5b503347-accd-4847-a7e2-aedf3546fcba"> After: <img width="269" alt="Screenshot 2024-05-01 at 10 28 02 AM" src="https://github.com/Qiskit/documentation/assets/14852634/c1a358f6-26f5-4e6e-80e9-2ee440eec94f"> <img width="272" alt="Screenshot 2024-05-01 at 10 28 15 AM" src="https://github.com/Qiskit/documentation/assets/14852634/c3c80ca7-96e5-4942-ac39-6795b9504277"> This also improves historical APIs <img width="271" alt="Screenshot 2024-05-01 at 10 29 08 AM" src="https://github.com/Qiskit/documentation/assets/14852634/362cc70f-4c7e-49c4-9447-78af2a648452">
frankharkins
pushed a commit
to frankharkins/documentation
that referenced
this issue
Jul 22, 2024
Closes Qiskit#1212. As explained there, this is because: 1. Qiskit SDK is getting a bigger revamp in Qiskit#1211 and it will also flatten submodules, so we want to be consistent. 2. The module list is so short that it's useful to have the navbar be flatter. It makes things less crowded and more discoverable. Note that some of the Runtime provider pages aren't very useful...I opened Qiskit#1240 to track that. For now, this is implemented as the `Pkg` constructor setting a boolean argument for whether modules should be nested or not. I'm coming up with an alternative—but similar factoring—while working on Qiskit#1211. This PR is ~prework. <img width="253" alt="Screenshot 2024-04-24 at 4 02 34 PM" src="https://github.com/Qiskit/documentation/assets/14852634/2bbbaa7f-e187-4170-b2c5-02273e340b07"> <img width="257" alt="Screenshot 2024-04-24 at 4 02 10 PM" src="https://github.com/Qiskit/documentation/assets/14852634/53816ee2-f7ee-4d1d-90a5-64d7795fd776">
frankharkins
pushed a commit
to frankharkins/documentation
that referenced
this issue
Jul 22, 2024
## Problem This is how Qiskit 0.19 looks: <img width="260" alt="Screenshot 2024-04-29 at 5 00 14 PM" src="https://github.com/Qiskit/documentation/assets/14852634/151d56df-09d2-47c6-885b-a8ce6f6e931a"> The three `qiskit` entries are: https://docs.quantum.ibm.com/api/qiskit/0.19 https://docs.quantum.ibm.com/api/qiskit/0.19/ibmq-provider https://docs.quantum.ibm.com/api/qiskit/0.19/aqua 0.19 is the only version like that, e.g. Qiskit 0.24 doesn't have duplicates: <img width="266" alt="Screenshot 2024-04-29 at 5 00 36 PM" src="https://github.com/Qiskit/documentation/assets/14852634/93f4c64e-7427-41d3-9deb-ae8f5ebcd758"> In 0.19 docs, the first two `qiskit` entries are index pages for Qiskit Aqua and Qiskit IBMQ Provider. Those are index pages that simply list all modules, rather than module overview pages that describe the modules `qiskit.aqua` and `qiskit.providers.ibmq`. Having the three duplicate `qiskit` entries is going to be a problem with Qiskit#1211 when we group modules. ## Solution I simply deleted the two index files from the HTML and regenerated the docs. If we like this PR, I will upload that HTML change to Box. I went with deletion because it's the simplest fix. We don't have these index pages in every version after 0.19, and it works fine. Qiskit#1211 will also help with module discovery through better grouping. We could instead rewrite the HTML for the two problematic files, but I figured it's fine to do the simpler approach that's consistent with later versions.
frankharkins
pushed a commit
to frankharkins/documentation
that referenced
this issue
Jul 22, 2024
Closes Qiskit#1211. See Qiskit/qiskit#12333 for the sibling PR in Qiskit. We'll land the test Qiskit#1300 once both PRs have landed. This uses the same grouping as Qiskit#1211 (comment), if people prefer reviewing the list over code. Before: <img width="254" alt="Screenshot 2024-05-01 at 10 27 43 AM" src="https://github.com/Qiskit/documentation/assets/14852634/5b503347-accd-4847-a7e2-aedf3546fcba"> After: <img width="269" alt="Screenshot 2024-05-01 at 10 28 02 AM" src="https://github.com/Qiskit/documentation/assets/14852634/c1a358f6-26f5-4e6e-80e9-2ee440eec94f"> <img width="272" alt="Screenshot 2024-05-01 at 10 28 15 AM" src="https://github.com/Qiskit/documentation/assets/14852634/c3c80ca7-96e5-4942-ac39-6795b9504277"> This also improves historical APIs <img width="271" alt="Screenshot 2024-05-01 at 10 29 08 AM" src="https://github.com/Qiskit/documentation/assets/14852634/362cc70f-4c7e-49c4-9447-78af2a648452">
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example
The main changes:
Qiskit 1.0 modules
code to find modules
module list
qiskit.assembler
qiskit.circuit
qiskit.circuit.classical
qiskit.circuit.classicalfunction
qiskit.circuit.library
qiskit.circuit.singleton
qiskit.compiler
qiskit.converters
qiskit.dagcircuit
qiskit.exceptions
qiskit.passmanager
qiskit.primitives
qiskit.providers
qiskit.providers.basic_provider
qiskit.providers.fake_provider
qiskit.providers.models
qiskit.pulse
qiskit.qasm2
qiskit.qasm3
qiskit.qobj
qiskit.qpy
qiskit.quantum_info
qiskit.result
qiskit.scheduler
qiskit.synthesis
qiskit.synthesis.unitary.aqc
qiskit.transpiler
qiskit.transpiler.passes
qiskit.transpiler.passes.synthesis.plugin
qiskit.transpiler.preset_passmanagers
qiskit.transpiler.preset_passmanagers.plugin
qiskit.utils
qiskit.visualization
The text was updated successfully, but these errors were encountered: