Skip to content

Commit 2774968

Browse files
committed
updating readme and setup
1 parent c1f5a8f commit 2774968

File tree

2 files changed

+4
-65
lines changed

2 files changed

+4
-65
lines changed

README.md

Lines changed: 3 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ PyTheus, a highly-efficient inverse-design algorithm for quantum optical experim
33

44
## Installation
55

6-
When published it will be possible to install via `pip install`. Untill then, install from source (after cloning the repository):
6+
The package can be installed with
77

88
```
9-
python setup.py install
9+
pip install pytheus
1010
```
1111

1212
## Running PyTheus
@@ -29,7 +29,7 @@ To run your own input file, type
2929
pytheus run PATH_TO_YOUR_INPUT_FILE
3030
```
3131

32-
Output of optimization is saved to a directory called `output`. Names of the subdirectorie are specified by the name
32+
Output of optimization is saved to a directory called `output`. Names of the subdirectories are specified by the name
3333
and content of the config file.
3434

3535
To plot the graph corresponding to one result saved as a json file, execute
@@ -38,29 +38,6 @@ To plot the graph corresponding to one result saved as a json file, execute
3838
pytheus plot PATH_TO_RESULT_FILE
3939
```
4040

41-
To analyze a subdirectory corresponding to one run, type
42-
43-
```
44-
pytheus analyze -d outputs/ghz_346/ghz_346
45-
```
46-
or just
47-
```
48-
pytheus analyze
49-
```
50-
then an overview of all available folders that can be selected is given.
51-
After that one can choose which run (if there exists different run-folders having different
52-
summary files) one wants to analyze. When you have decided on a state, an overview plot is created
53-
that shows the graph, the development of the loss function and various properties
54-
that can be declared via ```-i```. With ```-pm``` a pdf can be created that shows all perfect matchings.
55-
When one wants to set all weights to plus minus one one can choose the option ```-one```.
56-
Everthing together:
57-
```
58-
pytheus analyze -d your/directory -one -pm -i 'norm' -i 'ent' -i 'k'
59-
```
60-
```norm``` shows the normalization of the state, ```ent``` gives information about entanglement for
61-
the different bipartitions and ```k``` gives information if there is a k-uniform state and which
62-
bipartitions are maximally entangled (=1) or separable (=0).
63-
6441
To get help, add the `--help` option to any command. For instance
6542

6643
```
@@ -112,41 +89,3 @@ python setup.py develop
11289
from the project root directory (where `setup.py` is located).
11390
Any changes in the code will now automatically be reflected
11491
in your local package installation.
115-
116-
117-
## Tests
118-
119-
### Run test suite
120-
121-
#### Running all tests
122-
123-
```
124-
python -m unittest discover tests
125-
```
126-
127-
#### Running only the fast tests
128-
129-
```
130-
python -m unittest discover -s tests/fast
131-
```
132-
133-
### Test coverage
134-
135-
Install `coverage`, if you have not yet done so:
136-
137-
```
138-
pip install coverage
139-
```
140-
141-
Then run coverage scan:
142-
143-
```
144-
coverage run --source=pytheus -m unittest discover tests
145-
```
146-
147-
After that, create the coverage report:
148-
149-
```
150-
coverage report -m
151-
```
152-

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
author = 'artificial-scientist-lab'
1010
1111
description = 'Theseus, a highly-efficient inverse-design algorithm for quantum optical experiments'
12-
dist_name = 'suehtyp'
12+
dist_name = 'pytheus'
1313
package_name = 'pytheus'
1414
year = '2022'
1515
url = 'https://github.com/artificial-scientist-lab/Pytheus'

0 commit comments

Comments
 (0)