Skip to content

Commit

Permalink
add quickstart.ipynb to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Nov 24, 2023
1 parent ce6339e commit f0554a8
Show file tree
Hide file tree
Showing 6 changed files with 182 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tox
## Make docs

```
pip install sphinx sphinx_rtd_theme
pip install sphinx sphinx_rtd_theme myst_parser
cd docs
make html
```
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"sphinx.ext.coverage",
"sphinx.ext.napoleon",
"sphinx_rtd_theme",
"myst_nb"
]

templates_path = ["_templates"]
Expand Down
10 changes: 7 additions & 3 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@ Qlasskit
Qlasskit is a Python library that allows quantum developers to write classical algorithms in pure
Python and translate them into unitary operators (gates) for use in quantum circuits.



.. toctree::
:maxdepth: 2

:caption: Qlasskit

quickstart.ipynb
howitworks
supported
algorithms
api

.. toctree::
:maxdepth: 2
:caption: Examples


Indices and tables
==================
Expand Down
171 changes: 171 additions & 0 deletions docs/source/quickstart.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/source/supported.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ List (fixed size)
^^^^^^^^^^^^^^^^^

.. code-block:: python
[a, b]
Expand Down
2 changes: 1 addition & 1 deletion qlasskit/qcircuit/qcircuitwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ def export(self, framework: SupportedFramework = "qiskit") -> Any:
return self._qcircuit.export(mode="circuit", framework=framework)

def draw(self):
print(self._qcircuit.draw())
return self._qcircuit.draw()

0 comments on commit f0554a8

Please sign in to comment.