-
Notifications
You must be signed in to change notification settings - Fork 2
/
workflow.py
49 lines (46 loc) · 1.53 KB
/
workflow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""Entrypoint for CLI
Available commands:
0. Register the session in disk space
```shell
python workflow.py authentication --channel="cloud" --token="your_very_long_token" --instance="ibm-q/open/main"
```
1. Run the full workflow.
```shell
python workflow.py end2end_flow --circuit_tpl_id=[5] --matrix_size=[100,100]
:warning: You can't use the option --seed1 and --seed2 if you use --matrix_size
```
2. Run only the kernel flow with seed1 and seed2.
```shell
python workflow.py kernel_flow --circuit_tpl_id=[2,5]
```
3. Run only the kernel flow with in order to generate a full matrix data.
```shell
python workflow.py kernel_flow --circuit_tpl_id=[5] --matrix_size=[1,1]
:warning: You can't use the option --seed1 and --seed2 if you use --matrix_size
```
4. Run only the completion flow with in order to generate a full matrix data.
```shell
python workflow.py completion_flow --file_name="kernels-2-ideal.csv" --nb_qubits=3
:warning: You can't use the option --seed1 and --seed2 if you use --matrix_size
```
5. To decode and access the data from metadata kernel files
```
python workflow.py view_kernel --file_name="kernels-2-ideal.csv"
```
6. To decode and access the data from the telemetry file
```
python workflow.py view_telemetry
```
7. To decode and access the data from completion matrix files
```
python workflow.py view_matrix --file_name="kernels-2-ideal.csv.npy"
```
8. To sync data files with another folder
```
python workflow.py sync_data
```
"""
import fire
from q_kernel_ops import Workflow
if __name__ == "__main__":
fire.Fire(Workflow)