Skip to content

Commit

Permalink
docs: updates + fixes, incld rst -> myst changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Nov 29, 2023
1 parent 4215ae2 commit d6b8cae
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 186 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
autoapi_dirs = ['../quimb']

extlinks = {
'issue': ('https://github.com/jcmgray/quimb/issues/%s', 'GH'),
'pull': ('https://github.com/jcmgray/quimb/pull/%s', 'PR'),
'issue': ('https://github.com/jcmgray/quimb/issues/%s', 'GH %s'),
'pull': ('https://github.com/jcmgray/quimb/pull/%s', 'PR %s'),
}
intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
Expand Down
107 changes: 107 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<img src="_static/kagome-contract-treeset-2.png" alt="quimb" width="800px">

# Welcome to quimb's documentation!

[![Tests](https://github.com/jcmgray/quimb/actions/workflows/tests.yml/badge.svg)](https://github.com/jcmgray/quimb/actions/workflows/tests.yml)
[![Code Coverage](https://codecov.io/gh/jcmgray/quimb/branch/main/graph/badge.svg)](https://codecov.io/gh/jcmgray/quimb)
[![Code Quality](https://app.codacy.com/project/badge/Grade/3c7462a3c45f41fd9d8f0a746a65c37c)](https://www.codacy.com/gh/jcmgray/quimb/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=jcmgray/quimb&amp;utm_campaign=Badge_Grade)
[![Documentation Status](https://readthedocs.org/projects/quimb/badge/?version=latest)](http://quimb.readthedocs.io/en/latest/?badge=latest)
[![JOSS Paper](http://joss.theoj.org/papers/10.21105/joss.00819/status.svg)](https://doi.org/10.21105/joss.00819)
[![PyPI](https://img.shields.io/pypi/v/quimb?color=teal)](https://pypi.org/project/quimb/)

[`quimb`](https://github.com/jcmgray/quimb) is an easy but fast python library for *'quantum information many-body'* calculations, focusing primarily on **tensor networks**. The code is hosted on [github](https://github.com/jcmgray/quimb), and docs are hosted on [readthedocs](http://quimb.readthedocs.io/en/latest/). Functionality is split in two:

::::{grid} 2

:::{grid-item-card} Tensor module
:img-bottom: _static/rand-tensor.svg

The `quimb.tensor` module contains tools for working with **tensors and tensor networks**. It has a particular focus on automatically handling arbitrary geometry, e.g. beyond 1D and 2D lattices. With this you can:

- construct and manipulate arbitrary (hyper) graphs of tensor networks
- automatically [contract](https://cotengra.readthedocs.io), optimize and draw networks
- use various backend array libraries such as [jax](https://jax.readthedocs.io) and [torch](https://pytorch.org/) via [autoray](https://github.com/jcmgray/autoray/)
- run specific MPS, PEPS, MERA and quantum circuit algorithms, such as DMRG & TEBD
:::

:::{grid-item-card} Matrix module
:img-bottom: _static/rand-herm-matrix.svg

The core `quimb` module contains tools for reference **'exact'** quantum calculations, where the states and operator are represented as either `numpy.ndarray` or `scipy.sparse` **matrices**. With this you can:

- construct operators in complicated tensor spaces
- find groundstates, excited states and do time evolutions, including with [slepc](https://slepc.upv.es/)
- compute various quantities including entanglement measures
- take advantage of [numba](https://numba.pydata.org) accelerations
- stochastically estimate $\mathrm{Tr}f(X)$ quantities
:::

::::


(guides)=
## User Guide

The following guides give a basic introduction to the various parts:

```{toctree}
:caption: Guides
:maxdepth: 1
installation
```
```{toctree}
:maxdepth: 2
index_tn
index_matrix
```


(examples)=
## Examples

The following examples, generated from the notebooks in ``docs/examples``,
demonstrate some more advanced features or complete usage:

```{toctree}
:maxdepth: 2
index_examples
```


(citing)=
## Citing

``quimb`` is published in the Journal of Open Source Software
[here](https://doi.org/10.21105/joss.00819) - if it's ever useful in research
please consider supporting development by citing it!

```latex
@article{gray2018quimb,
title={quimb: a python library for quantum information and many-body calculations},
author={Gray, Johnnie},
journal={Journal of Open Source Software},
year = {2018},
volume={3}, number={29}, pages={819},
doi={10.21105/joss.00819},
}
```


(development)=
## Notes

Development notes, including on contributing to ``quimb`` and release details
can be found below:

```{toctree}
:caption: Development
changelog
develop
```

```{toctree}
:hidden:
GitHub Repository <https://github.com/jcmgray/quimb>
```
132 changes: 0 additions & 132 deletions docs/index.rst

This file was deleted.

14 changes: 0 additions & 14 deletions docs/index_core.rst

This file was deleted.

21 changes: 21 additions & 0 deletions docs/index_examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Examples

```{toctree}
:numbered:
:maxdepth: 2
./examples/ex_2d
./examples/ex_quench
./examples/ex_distributed_shift_invert
./examples/ex_tn_TRG
./examples/ex_tn_rand_uni_gate_graphs
./examples/ex_dmrg_periodic
./examples/ex_TEBD_evo
./examples/ex_MERA
./examples/ex_tensorflow_optimize_pbc_mps
./examples/ex_tn_train_circuit
./examples/ex_tn_qaoa_energy_bayesopt
./examples/ex_quimb_within_torch
./examples/ex_quimb_within_jax_flax_optax
./examples/ex_tn_tensor_fitting
```
22 changes: 0 additions & 22 deletions docs/index_examples.rst

This file was deleted.

13 changes: 13 additions & 0 deletions docs/index_matrix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Matrix Guide

```{toctree}
:numbered:
:maxdepth: 2
basics
generate
calculating quantities
solving systems
distributed parallelism - mpi
dynamics and evolution
```
15 changes: 15 additions & 0 deletions docs/index_tn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Tensor Network Guide

```{toctree}
:numbered:
:maxdepth: 2
tensor-basics
tensor-contraction
tensor-drawing
tensor-optimization
tensor-1d
tensor-2d
tensor-circuit
tensor-design
```
16 changes: 0 additions & 16 deletions docs/index_tn.rst

This file was deleted.

0 comments on commit d6b8cae

Please sign in to comment.