-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applies the same changes from Qiskit/qiskit-addon-obp#24. Refer to that for more explanation. Some notes: * Removes `qiskit_addon_sqd.rst`, since users don't actually import this module directly * Inlines every function<hr>This is an automatic backport of pull request #88 done by [Mergify](https://mergify.com).
- Loading branch information
1 parent
27e7384
commit b8057fa
Showing
16 changed files
with
113 additions
and
120 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
********************************** | ||
``qiskit-addon-sqd`` API reference | ||
********************************** | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
qiskit_addon_sqd.configuration_recovery | ||
qiskit_addon_sqd.counts | ||
qiskit_addon_sqd.fermion | ||
qiskit_addon_sqd.qubit | ||
qiskit_addon_sqd.subsampling |
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,10 +1,13 @@ | ||
====================== | ||
Configuration Recovery | ||
====================== | ||
|
||
.. _qiskit_addon_sqd-configuration_recovery: | ||
======================================================================= | ||
Configuration recovery (:mod:`qiskit_addon_sqd.configuration_recovery`) | ||
======================================================================= | ||
|
||
.. automodule:: qiskit_addon_sqd.configuration_recovery | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_sqd.configuration_recovery | ||
|
||
.. autofunction:: post_select_by_hamming_weight | ||
.. autofunction:: recover_configurations |
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,10 +1,15 @@ | ||
====== | ||
Counts | ||
====== | ||
|
||
.. _qiskit_addon_sqd-counts: | ||
======================================= | ||
Counts (:mod:`qiskit_addon_sqd.counts`) | ||
======================================= | ||
|
||
.. automodule:: qiskit_addon_sqd.counts | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_sqd.counts | ||
|
||
.. autofunction:: counts_to_arrays | ||
.. autofunction:: generate_counts_uniform | ||
.. autofunction:: generate_counts_bipartite_hamming | ||
.. autofunction:: normalize_counts_dict |
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,10 +1,18 @@ | ||
======= | ||
Fermion | ||
======= | ||
|
||
.. _qiskit_addon_sqd-fermion: | ||
========================================= | ||
Fermion (:mod:`qiskit_addon_sqd.fermion`) | ||
========================================= | ||
|
||
.. automodule:: qiskit_addon_sqd.fermion | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_sqd.fermion | ||
|
||
.. autofunction:: bitstring_matrix_to_ci_strs | ||
.. autofunction:: enlarge_batch_from_transitions | ||
.. autofunction:: flip_orbital_occupancies | ||
.. autofunction:: solve_fermion | ||
.. autofunction:: optimize_orbitals | ||
.. autofunction:: rotate_integrals | ||
.. autofunction:: bitstring_matrix_to_sorted_addresses |
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,10 +1,15 @@ | ||
===== | ||
Qubit | ||
===== | ||
|
||
.. _qiskit_addon_sqd-qubit: | ||
===================================== | ||
Qubit (:mod:`qiskit_addon_sqd.qubit`) | ||
===================================== | ||
|
||
.. automodule:: qiskit_addon_sqd.qubit | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_sqd.qubit | ||
|
||
.. autofunction:: solve_qubit | ||
.. autofunction:: project_operator_to_subspace | ||
.. autofunction:: sort_and_remove_duplicates | ||
.. autofunction:: matrix_elements_from_pauli |
This file was deleted.
Oops, something went wrong.
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,10 +1,13 @@ | ||
=========== | ||
Subsampling | ||
=========== | ||
|
||
.. _qiskit_addon_sqd-subsampling: | ||
================================================= | ||
Subsampling (:mod:`qiskit_addon_sqd.subsampling`) | ||
================================================= | ||
|
||
.. automodule:: qiskit_addon_sqd.subsampling | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: | ||
|
||
.. currentmodule:: qiskit_addon_sqd.subsampling | ||
|
||
.. autofunction:: subsample | ||
.. autofunction:: postselect_and_subsample |
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
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