Skip to content

Commit 9a71aa0

Browse files
authored
Merge pull request #28 from jiaqileng/adding-documentation-and-bug-fixes
Adding documentation and bug fixes
2 parents 110f45b + e8c1b1b commit 9a71aa0

24 files changed

+200
-544
lines changed

docs/api.rst

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
API
2+
===
3+
4+
.. automodule:: qhdopt.qhd
5+
:members:
6+
7+
.. automodule:: qhdopt.qhd_base
8+
:members:
9+
10+
.. automodule:: qhdopt.utils
11+
:members:
12+
13+
.. automodule:: qhdopt.backend.backend
14+
:members:
15+
16+
.. automodule:: qhdopt.backend.dwave_backend
17+
:members:

docs/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8+
import pathlib
9+
import sys
10+
sys.path.insert(0, pathlib.Path(__file__).parents[1].resolve().as_posix())
811

912
project = 'QHDOPT'
1013
copyright = '2024, Samuel Kushnir, Jiaqi Leng, Yuxiang Peng'
@@ -14,7 +17,7 @@
1417
# -- General configuration ---------------------------------------------------
1518
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1619

17-
extensions = ['sphinx.ext.autodoc']
20+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.napoleon']
1821

1922
templates_path = ['_templates']
2023
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

docs/index.rst

+18-9
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,27 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to QHDOPT's documentation!
6+
QHDOPT
77
==================================
8+
QHDOPT (QHD-based OPTimizer) is a software package for nonconvex optimization.
89

9-
.. toctree::
10-
:maxdepth: 2
11-
:caption: Contents:
10+
QHDOPT implements a quantum optimization algorithm named Quantum Hamiltonian Descent (QHD) on available quantum computers (such as the D-Wave systems).
11+
QHD is a quantum-upgraded version of gradient descent (GD).
12+
Unlike the classical GD, QHD demonstrates a significant advantage in solving nonconvex optimization problems.
13+
14+
QHDOPT is for everyone!
15+
QHDOPT aims to eliminate the technical barrier of using QHD for the broader operations research (OR) community.
16+
We do not assume users to have prior knowledge of quantum computing, while we allow expert users to specify advanced solver parameters for customized experience. Our target users include:
1217

18+
Professionals pursuing an off-the-shelf nonconvex optimization solver to tackle problems in operations research (e.g., power systems, supply chains, manufacturing, health care, etc.),
19+
Researchers who hope to advance the theory and algorithms of optimization via quantum technologies,
20+
Experts in quantum computation who want to experiment with hyperparameters and/or encodings in QHD to achieve even better practical performance.
21+
Fast compilation empowered by SimuQ
22+
QHDOPT has a built-in compiler powered by SimuQ, a framework for programming and compiling quantum Hamiltonian systems.
1323

24+
Automatic post-processing
25+
QHDOPT automatically post-processes the results returned by the quantum machines. The post-processing includes decoding the raw measurement results and improving their precision (i.e., fine-tuning) via a classical local solver. Users may disable the fine-tuning if needed.
1426

15-
Indices and tables
16-
==================
1727

18-
* :ref:`genindex`
19-
* :ref:`modindex`
20-
* :ref:`search`
28+
.. toctree::
29+
api

0 commit comments

Comments
 (0)