Skip to content

Commit 919a2b2

Browse files
simplify README.md
1 parent 827b25f commit 919a2b2

File tree

1 file changed

+5
-51
lines changed

1 file changed

+5
-51
lines changed

README.md

Lines changed: 5 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<img src="figures/diagram.png" style="solid #000; max-width:600px; max-height:1000px;">
44
Boosting variational eigenstate preparation algorithms limited by training and not device coherence by diagonalization double-bracket iteration.
55

6-
## Setup
6+
## Installation instructions
77

8-
Given you have `poetry` installed
8+
The package can be installed by source after cloning the repository:
99

1010
```sh
11-
poetry install && poetry shell
11+
pip install -e .
1212
```
1313

1414
will install `boostvqe 0.0.1` and activate a dedicated working shell.
@@ -26,58 +26,12 @@ The source code is located in `./src/boostvqe/.` and its composed of:
2626

2727
## How to run the code
2828

29+
For further information about the inputs:
30+
2931
```sh
3032
python main.py --help
3133
```
3234

33-
```sh
34-
35-
usage: main.py [-h] [--backend BACKEND] [--platform PLATFORM]
36-
[--nthreads NTHREADS] [--optimizer OPTIMIZER]
37-
[--optimizer_options OPTIMIZER_OPTIONS] [--tol TOL]
38-
[--decay_rate_lr DECAY_RATE_LR] [--nqubits NQUBITS]
39-
[--nlayers NLAYERS] [--output_folder OUTPUT_FOLDER]
40-
[--nboost NBOOST] [--boost_frequency BOOST_FREQUENCY]
41-
[--dbi_steps DBI_STEPS] [--stepsize STEPSIZE]
42-
[--optimize_dbi_step OPTIMIZE_DBI_STEP]
43-
[--store_h | --no-store_h] [--hamiltonian HAMILTONIAN]
44-
[--seed SEED] [--nshots NSHOTS]
45-
46-
VQE with DBI training hyper-parameters.
47-
48-
optional arguments:
49-
-h, --help show this help message and exit
50-
--backend BACKEND Qibo backend
51-
--platform PLATFORM Qibo platform (used to run on GPU)
52-
--nthreads NTHREADS Number of threads used by the script.
53-
--optimizer OPTIMIZER
54-
Optimizer used by VQE
55-
--optimizer_options OPTIMIZER_OPTIONS
56-
Options to customize the optimizer training
57-
--tol TOL Absolute precision to stop VQE training
58-
--decay_rate_lr DECAY_RATE_LR
59-
Decay factor of the learning rate if sgd is used
60-
--nqubits NQUBITS Number of qubits for Hamiltonian / VQE
61-
--nlayers NLAYERS Number of layers for VQE
62-
--output_folder OUTPUT_FOLDER
63-
Folder where data will be stored
64-
--nboost NBOOST Number of times the DBI is used in the new
65-
optimization routine. If 1, no optimization is run.
66-
--boost_frequency BOOST_FREQUENCY
67-
Number of optimization steps which separate two DBI
68-
boosting calls.
69-
--dbi_steps DBI_STEPS
70-
Number of DBI iterations every time the DBI is called.
71-
--stepsize STEPSIZE DBI step size.
72-
--optimize_dbi_step OPTIMIZE_DBI_STEP
73-
Set to True to hyperoptimize the DBI step size.
74-
--store_h, --no-store_h
75-
H is stored for each iteration
76-
--hamiltonian HAMILTONIAN
77-
Hamiltonian available in qibo.hamiltonians.
78-
--seed SEED Random seed
79-
--nshots NSHOTS number of shots
80-
```
8135
# Tutorials
8236

8337
Some useful notebooks to understand how the library works, are collected [here](notebooks/notebooks_links.md).

0 commit comments

Comments
 (0)