@@ -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
2929pytheus 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
3333and content of the config file.
3434
3535To 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
3838pytheus 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-
6441To get help, add the ` --help ` option to any command. For instance
6542
6643```
@@ -112,41 +89,3 @@ python setup.py develop
11289from the project root directory (where ` setup.py ` is located).
11390Any changes in the code will now automatically be reflected
11491in 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-
0 commit comments