-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applies changes similar to Qiskit/qiskit-addon-obp#24. Refer to that for more explanation. This repository is laid out a little differently than how qiskit-addon-obp was, however. This repository was extremely flat: all interfaces were explicitly listed in `index.rst` and there were no module pages. Naturally, no functions/classes were inlined on module pages. Now, the docs are organized by the distinct modules. <details><summary>new left ToC for docs.quantum.ibm.com</summary> <img width="248" alt="Screenshot 2024-10-28 at 2 42 15 PM" src="https://github.com/user-attachments/assets/8eaf20f0-f4c1-4bca-9f5e-97ccc0c95054"> </details>
- Loading branch information
1 parent
10746c0
commit 109be76
Showing
23 changed files
with
225 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,16 @@ | ||
.. qiskit_addon_cutting: | ||
====================================== | ||
``qiskit-addon-cutting`` API reference | ||
====================================== | ||
|
||
.. module:: qiskit_addon_cutting | ||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
============== | ||
API References | ||
============== | ||
|
||
############### | ||
Circuit Cutting | ||
############### | ||
|
||
.. automodule:: qiskit_addon_cutting | ||
:no-index: | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
######### | ||
Utilities | ||
######### | ||
|
||
.. automodule:: qiskit_addon_cutting.utils | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
qiskit_addon_cutting | ||
qiskit_addon_cutting.instructions | ||
qiskit_addon_cutting.qpd | ||
qiskit_addon_cutting.utils.bitwise | ||
qiskit_addon_cutting.utils.iteration | ||
qiskit_addon_cutting.utils.observable_grouping | ||
qiskit_addon_cutting.utils.simulation | ||
qiskit_addon_cutting.utils.transforms | ||
qiskit_addon_cutting.utils.transpiler_passes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
======================================================= | ||
Instructions (:mod:`qiskit_addon_cutting.instructions`) | ||
======================================================= | ||
|
||
.. automodule:: qiskit_addon_cutting.instructions | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting.instructions | ||
|
||
.. autoclass:: CutWire | ||
.. autoclass:: Move |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
======================================================================= | ||
Quasi-Probability Decomposition (QPD) (:mod:`qiskit_addon_cutting.qpd`) | ||
======================================================================= | ||
|
||
.. automodule:: qiskit_addon_cutting.qpd | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting.qpd | ||
|
||
.. autoclass:: QPDBasis | ||
.. autoclass:: BaseQPDGate | ||
.. autoclass:: SingleQubitQPDGate | ||
.. autoclass:: TwoQubitQPDGate | ||
.. autoclass:: WeightType | ||
|
||
.. autofunction:: generate_qpd_weights | ||
.. autofunction:: decompose_qpd_instructions | ||
.. autofunction:: qpdbasis_from_instruction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
============================================= | ||
Circuit cutting (:mod:`qiskit_addon_cutting`) | ||
============================================= | ||
|
||
.. automodule:: qiskit_addon_cutting | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting | ||
|
||
.. autofunction:: cut_wires | ||
.. autofunction:: expand_observables | ||
.. autofunction:: partition_circuit_qubits | ||
.. autofunction:: partition_problem | ||
.. autofunction:: cut_gates | ||
.. autofunction:: generate_cutting_experiments | ||
.. autofunction:: reconstruct_expectation_values | ||
|
||
.. autoclass:: PartitionedCuttingProblem | ||
|
||
Automatic Cut Finding | ||
~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autofunction:: find_cuts | ||
|
||
.. autoclass:: OptimizationParameters | ||
.. autoclass:: DeviceConstraints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
============================================================= | ||
Bitwise utilities (:mod:`qiskit_addon_cutting.utils.bitwise`) | ||
============================================================= | ||
|
||
.. automodule:: qiskit_addon_cutting.utils.bitwise | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting.utils.bitwise | ||
|
||
.. autofunction:: bit_count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
================================================================= | ||
Iteration utilities (:mod:`qiskit_addon_cutting.utils.iteration`) | ||
================================================================= | ||
|
||
.. automodule:: qiskit_addon_cutting.utils.iteration | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting.utils.iteration | ||
|
||
.. autofunction:: unique_by_id | ||
.. autofunction:: unique_by_eq |
14 changes: 14 additions & 0 deletions
14
docs/apidocs/qiskit_addon_cutting.utils.observable_grouping.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
=========================================================================== | ||
Observable grouping (:mod:`qiskit_addon_cutting.utils.observable_grouping`) | ||
=========================================================================== | ||
|
||
.. automodule:: qiskit_addon_cutting.utils.observable_grouping | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting.utils.observable_grouping | ||
|
||
.. autofunction:: observables_restricted_to_subsystem | ||
.. autoclass:: CommutingObservableGroup | ||
.. autoclass:: ObservableCollection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
=================================================================== | ||
Simulation utilities (:mod:`qiskit_addon_cutting.utils.simulation`) | ||
=================================================================== | ||
|
||
.. automodule:: qiskit_addon_cutting.utils.simulation | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting.utils.simulation | ||
|
||
.. autofunction:: simulate_statevector_outcomes | ||
.. autoclass:: ExactSampler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
========================================================= | ||
Transforms (:mod:`qiskit_addon_cutting.utils.transforms`) | ||
========================================================= | ||
|
||
.. automodule:: qiskit_addon_cutting.utils.transforms | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting.utils.transforms | ||
|
||
.. autofunction:: separate_circuit | ||
.. autoclass:: SeparatedCircuits |
13 changes: 13 additions & 0 deletions
13
docs/apidocs/qiskit_addon_cutting.utils.transpiler_passes.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
======================================================================= | ||
Transpiler passes (:mod:`qiskit_addon_cutting.utils.transpiler_passes`) | ||
======================================================================= | ||
|
||
.. automodule:: qiskit_addon_cutting.utils.transpiler_passes | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_cutting.utils.transpiler_passes | ||
|
||
.. autoclass:: RemoveFinalReset | ||
.. autoclass:: ConsolidateResets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.