-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b31072f
commit 6d08223
Showing
8 changed files
with
136 additions
and
606 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
# Setup | ||
|
||
## Installation from PyPi (recommended method) | ||
## Python - Installation from source | ||
|
||
Installtion from [PyPi](https://pypi.org/project/ldpc/) requires Python>=3.6. | ||
To install via pip, run: | ||
The C++ source code can be found in src_cpp. Python bindings are implemented using Cython and can be found in src/ldpc. To install the Python version of the repository follows the instructions below: | ||
|
||
- Download the repo. | ||
- Navigate to the root. | ||
- Pip install with `python>=3.8`. | ||
Note: installation requires a `C` compiler. Eg. `gcc` on Linux or `clang` on Windows. | ||
|
||
``` | ||
pip install -U ldpc | ||
git clone git@github.com:quantumgizmos/ldpc_v2.git | ||
cd ldpc | ||
pip install -Ue . | ||
``` | ||
|
||
## Installation (from source) | ||
## Installation from Test PyPi | ||
|
||
Installation from source requires Python>=3.6 and a local C compiler (eg. 'gcc' in Linux or 'clang' in Windows). The LDPC package can then be installed by running: | ||
This package is currently hosted on TestPyPi. Installation requires Python>=3.8. To install, run the following `pip` commands. | ||
|
||
``` | ||
git clone https://github.com/quantumgizmos/ldpc.git | ||
cd ldpc | ||
pip install -e ldpc | ||
``` | ||
|
||
## Dependencies | ||
This package makes use of the `mod2sparse` data structure from Radford Neal's [Software for Low Density Parity Check Codes](https://www.cs.toronto.edu/~radford/ftp/LDPC-2012-02-11/index.html) C package. | ||
pip install -U numpy scipy tqdm pytest stim sinter BeliefMatching | ||
pip install -i https://test.pypi.org/simple/ ldpc | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.