Skip to content

Commit

Permalink
use myst for sphinx docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Jan 10, 2024
1 parent dbde658 commit baf666e
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 39 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ Faster simulations of fermionic quantum circuits.

## What is ffsim?

<!-- start what-is-ffsim -->

ffsim is a software library for simulating fermionic quantum circuits that conserve particle number
and the Z component of spin. This category includes many quantum circuits used for quantum chemistry simulations.
By exploiting the symmetries and using specialized algorithms, ffsim can simulate these circuits much faster
than a generic quantum circuit simulator.

**Experimental disclaimer**: ffsim is currently an experimental release. Breaking changes may be introduced without warning.

<!-- end what-is-ffsim -->

## Documentation

Documentation is located at the [project website](https://qiskit-community.github.io/ffsim/).
Expand All @@ -23,12 +27,16 @@ ffsim is supported on Linux, macOS, and the Windows Subsystem for Linux (WSL). I

### From PyPI

<!-- start install-from-pypi -->

ffsim is available on [PyPI](https://pypi.org/project/ffsim/). It can be installed by running the command

```bash
pip install ffsim
```

<!-- end install-from-pypi -->

### From source

Installing ffsim from source requires the following system dependencies:
Expand Down
11 changes: 11 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# API Reference

```{toctree}
ffsim
ffsim.contract
ffsim.linalg
ffsim.optimize
ffsim.random
ffsim.testing
```
12 changes: 0 additions & 12 deletions docs/api/index.rst

This file was deleted.

4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.extlinks",
"sphinx_autodoc_typehints",
"myst_parser",
"nbsphinx",
]

Expand All @@ -49,4 +50,5 @@

# nbsphinx options (for tutorials)
nbsphinx_timeout = 500
nbsphinx_execute = "always"
# TODO change this back to "always"
nbsphinx_execute = "never"
28 changes: 28 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# ffsim

Faster simulations of fermionic quantum circuits.

## What is ffsim?

```{include} ../README.md
:start-after: <!-- start what-is-ffsim -->
:end-before: <!-- end what-is-ffsim -->
```

## Install from PyPI

```{include} ../README.md
:start-after: <!-- start install-from-pypi -->
:end-before: <!-- end install-from-pypi -->
```

## Get started

Check out the [tutorials](tutorials/index.md).

```{toctree}
:hidden:
tutorials/index
api/index
```
14 changes: 0 additions & 14 deletions docs/index.rst

This file was deleted.

11 changes: 11 additions & 0 deletions docs/tutorials/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Tutorials

```{toctree}
01-introduction
02-orbital-rotation
03-double-factorized
04-lucj
05-entanglement-forging
06-fermion-operator
```
12 changes: 0 additions & 12 deletions docs/tutorials/index.rst

This file was deleted.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dev = [
"jupyter-sphinx",
"maturin",
"mypy",
"myst-parser",
"nbmake",
"nbsphinx",
"pytest",
Expand Down

0 comments on commit baf666e

Please sign in to comment.