Skip to content

Commit

Permalink
Merge pull request #29 from viljarjf/dev
Browse files Browse the repository at this point in the history
Update docs
  • Loading branch information
viljarjf authored May 21, 2023
2 parents 8f07773 + 26d5828 commit c82d238
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 24 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

Python library for simulation of quantum mechanical systems.

[![.github/workflows/build_docs.yml](https://github.com/viljarjf/QM_sim/actions/workflows/build_docs.yml/badge.svg?branch=main&event=page_build)](https://github.com/viljarjf/QM_sim/actions/workflows/build_docs.yml)
[![Build docs](https://github.com/viljarjf/QM_sim/actions/workflows/build_docs.yml/badge.svg)](https://github.com/viljarjf/QM_sim/actions/workflows/build_docs.yml)

[//]: # (This is a comment. This comment should be on line 7. If this changes, also change the hard-coded line number for the start-line for the mdinclude at the top of docs/source/index.rst )

## Features
- 1D and 2D systems
- 1D, 2D, and 3D systems
- Choice of finite difference scheme
- Zero and periodic boundary conditions
- Stationary and temporal solutions
- Plots

## Planned features
- Boundary conditions
- 3D systems
- Transfer matrix for transmission ect.
- Testing
- Proper testing

[//]: # (This is a comment. This comment should be on line 20. If this changes, also change the hard-coded line number for the end-line for the mdinclude at the top of docs/source/index.rst )

## Installation

Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.viewcode',
'sphinx_mdinclude'
]


Expand Down
6 changes: 6 additions & 0 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ Temporal evolution of a 2D system

.. literalinclude:: ../../examples/06_2D_temporal_evolution.py
:language: python

Hydrogen atom
---------------------------------

.. literalinclude:: ../../examples/07_hydrogen_atom.py
:language: python
27 changes: 9 additions & 18 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,15 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Python library for simulation of quantum mechanical systems.
============================================================

Features
--------

- 1D and 2D systems
- Choice of finite difference scheme
- Stationary and temporal solutions
- Plots
- CPU and GPU calculations

Planned features
----------------
- Boundary conditions
- 3D systems
- Transfer matrix for transmission ect.
- Testing
QM-sim
======

A python library for simulation of quantum mechanical systems.


.. mdinclude:: ../../README.md
:start-line: 7
:end-line: 20

.. toctree::
:maxdepth: 1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
[project.optional-dependencies]
test = ["pytest", "matplotlib"]
torch = ["torch"]
docs = ["sphinx", "sphinx-rtd-theme"]
docs = ["sphinx", "sphinx-rtd-theme", "sphinx-mdinclude"]

[build-system]
requires = [
Expand Down

0 comments on commit c82d238

Please sign in to comment.