Skip to content

Commit

Permalink
Merge pull request #57 from qognitive/docs/install-guide
Browse files Browse the repository at this point in the history
add install guide
  • Loading branch information
alexanderlerner authored Oct 4, 2024
2 parents 4d2c2fd + ff7fcba commit 024a56f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ based on `PauliComposer <https://arxiv.org/abs/2301.00560>`_. In this guide,
we'll introduce some of the important operations to help users get started. For more details,
see the API documentation.

For tips on installing the library, check out the guide: :doc:`install`.
For tips on installing the library, check out the guide: :doc:`index`.

Pauli Matrices
------------------------
Expand Down
45 changes: 41 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,53 @@ fast_pauli documentation
:maxdepth: 1
:caption: Contents

install
examples
getting_started
benchmarks
python_api
cpp_api


Introduction
Installation
============
Welcome to ``fast_pauli``! This package provides fast and efficient implementations of pauli operators and strings,
with a focus on performance and usability. In order to get started, we'll need to install the package and its dependencies.

Our Goals
=========
Here are a few options for installing ``fast_pauli``:

Install using ``pip``
------------------
.. code-block:: bash
pip install fast_pauli
Install from source with Python
-------------------------------
.. code-block:: bash
git clone [email protected]:qognitive/fast-pauli.git
cd fast_pauli
python -m pip install -e ".[dev]"
Build From Source with CMake
----------------------------
.. code-block:: bash
git clone [email protected]:qognitive/fast-pauli.git
cd fast-pauli
# Configure/Compile the project
cmake -B build -G Ninja # <...custom cmake flags...>
cmake --build build --target install --parallel
ctest --test-dir build
# Install the python package
python -m pip install -e ".[dev]" --no-build-isolation
Verify / Test Build
-------------------

.. code-block:: bash
pytest -v tests/fast_pauli # + other pytest flags
13 changes: 0 additions & 13 deletions docs/install.rst

This file was deleted.

0 comments on commit 024a56f

Please sign in to comment.