DuruTo victor79 commited on
Commit
6114220
·
0 Parent(s):

Duplicate from Qiskit/ai-transpiler_linear-functions

Browse files

Co-authored-by: Victor <victor79@users.noreply.huggingface.co>

This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +35 -0
  2. README.md +108 -0
  3. config.json +14 -0
  4. linear_function_10qL.json +198 -0
  5. linear_function_10qL.safetensors +3 -0
  6. linear_function_2qL.json +86 -0
  7. linear_function_2qL.safetensors +3 -0
  8. linear_function_3qL.json +100 -0
  9. linear_function_3qL.safetensors +3 -0
  10. linear_function_4qL.json +114 -0
  11. linear_function_4qL.safetensors +3 -0
  12. linear_function_4qY.json +114 -0
  13. linear_function_4qY.safetensors +3 -0
  14. linear_function_5qL.json +128 -0
  15. linear_function_5qL.safetensors +3 -0
  16. linear_function_5qT.json +128 -0
  17. linear_function_5qT.safetensors +3 -0
  18. linear_function_6qL.json +142 -0
  19. linear_function_6qL.safetensors +3 -0
  20. linear_function_6qT.json +142 -0
  21. linear_function_6qT.safetensors +3 -0
  22. linear_function_6qY.json +142 -0
  23. linear_function_6qY.safetensors +3 -0
  24. linear_function_7qF.json +156 -0
  25. linear_function_7qF.safetensors +3 -0
  26. linear_function_7qH.json +156 -0
  27. linear_function_7qH.safetensors +3 -0
  28. linear_function_7qL.json +156 -0
  29. linear_function_7qL.safetensors +3 -0
  30. linear_function_7qT.json +156 -0
  31. linear_function_7qT.safetensors +3 -0
  32. linear_function_7qY.json +156 -0
  33. linear_function_7qY.safetensors +3 -0
  34. linear_function_8qF.json +170 -0
  35. linear_function_8qF.safetensors +3 -0
  36. linear_function_8qJ.json +170 -0
  37. linear_function_8qJ.safetensors +3 -0
  38. linear_function_8qL.json +170 -0
  39. linear_function_8qL.safetensors +3 -0
  40. linear_function_8qT1.json +170 -0
  41. linear_function_8qT1.safetensors +3 -0
  42. linear_function_8qT2.json +170 -0
  43. linear_function_8qT2.safetensors +3 -0
  44. linear_function_8qY.json +170 -0
  45. linear_function_8qY.safetensors +3 -0
  46. linear_function_9qF1.json +184 -0
  47. linear_function_9qF1.safetensors +3 -0
  48. linear_function_9qF2.json +184 -0
  49. linear_function_9qF2.safetensors +3 -0
  50. linear_function_9qH1.json +184 -0
.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+
5
+ ![hf-banner-ai-transpiler_linear-functions](https://cdn-uploads.huggingface.co/production/uploads/64b7001445f3511db2f6aa5b/VJV29bWXra2KnMCWcZ1D4.png)
6
+
7
+ # Linear Function Quantum Synthesis Circuit Models
8
+
9
+ ## Introduction
10
+ This repository hosts models for linear function synthesis in quantum circuits trained with RL techniques. The models are specialized for different topologies up to 10 qubits.
11
+
12
+ A linear function over n qubits is an n×n binary transformation on X/Z operators (the reversible linear part of a Clifford). Implementing it means finding CX/SWAP-based circuits whose action matches that binary map. [More information about Linear Funtion circuits](https://quantum.cloud.ibm.com/docs/en/api/qiskit/qiskit.circuit.library.LinearFunction)
13
+
14
+ For each model, there is the environment configs (`.json`) and the trained policy weights (`.safetensors`).
15
+
16
+
17
+ ## Scope
18
+ - Linear-function synthesis models.
19
+ - Each model is tied to a specific qubit count and topology; use the matching pair for your target device/layout. To discover the specific topology for each model see the `gateset` property in the model's config.
20
+
21
+ ## Contents
22
+ - `linear_function_*.json`: model configs for a given qubit count/topology.
23
+ - Matching `.safetensors` files: trained policies for each JSON (same filename stem).
24
+
25
+
26
+ ## Training
27
+
28
+ Training data is entirely synthetic and generated internally at IBM Quantum using custom reinforcement learning environments built on [Qiskit-Gym](https://github.com/AI4quantum/qiskit-gym).
29
+
30
+ **Data Collection:** Target operators are generated by sampling random linear-reversible circuits with CNOT gates consistent with the target coupling map. The number of gates scales with the difficulty, which increase when the model learns to solve circuits at that difficulty. No external datasets or third-party circuit repositories are used.
31
+
32
+ **PII:** No personal or sensitive data is present or used in any phase of training, as all data is synthetic and generated algorithmically.
33
+
34
+ **Infrastructure:** We train the models using IBM's Cognitive Computing Cluster (CCC) using NVIDIA A100 40GB GPUs. The cluster provides a scalable and efficient infrastructure for training.
35
+
36
+
37
+ ## Usage example
38
+
39
+ Here we provide a code snippet to synthesis a random 10qL linear function. In addition to the model we use the `qiskit-gym` ([repo](https://github.com/AI4quantum/qiskit-gym)) and `twisteRL` ([repo](https://github.com/AI4quantum/twisteRL)) libraries, as well as `qiskit`. You can install all needed libraries running `pip install qiskit-gym` in your python virutal environment.
40
+
41
+ ```python
42
+ from qiskit_gym.rl import RLSynthesis
43
+
44
+ from twisterl.utils import pull_hub_algorithm
45
+
46
+ from qiskit.circuit.library import LinearFunction
47
+ from qiskit.synthesis.linear.linear_matrix_utils import random_invertible_binary_matrix
48
+
49
+ local_path = pull_hub_algorithm(
50
+ repo_id="Qiskit/ai-transpiler_linear-functions",
51
+ model_path="./models",
52
+ revision="main",
53
+ validate=True
54
+ )
55
+
56
+ if not local_path:
57
+ raise ValueError("Failed to download model from hub")
58
+
59
+ num_qubits = 10
60
+ matrix = random_invertible_binary_matrix(num_qubits, seed=42)
61
+ input_lf = LinearFunction(matrix)
62
+ rls = RLSynthesis.from_config_json(f"{local_path}/linear_function_10qL.json", f"{local_path}/linear_function_10qL.safetensors")
63
+ qc_lf_output = rls.synth(input_lf, num_searches=10, num_mcts_searches=0, deterministic=False)
64
+ print(qc_lf_output)
65
+ ```
66
+
67
+ <!-- MODEL_INDEX_START -->
68
+ ## Models
69
+
70
+ Below is the list of available models with qubit counts and topologies:
71
+
72
+ | Model | Qubits | Topology |
73
+ | --- | --- | --- |
74
+ | [`linear_function_2qL`](model_data/linear_function_2qL.md) | 2 | L |
75
+ | [`linear_function_3qL`](model_data/linear_function_3qL.md) | 3 | L |
76
+ | [`linear_function_4qL`](model_data/linear_function_4qL.md) | 4 | L |
77
+ | [`linear_function_4qY`](model_data/linear_function_4qY.md) | 4 | Y |
78
+ | [`linear_function_5qL`](model_data/linear_function_5qL.md) | 5 | L |
79
+ | [`linear_function_5qT`](model_data/linear_function_5qT.md) | 5 | T |
80
+ | [`linear_function_6qL`](model_data/linear_function_6qL.md) | 6 | L |
81
+ | [`linear_function_6qT`](model_data/linear_function_6qT.md) | 6 | T |
82
+ | [`linear_function_6qY`](model_data/linear_function_6qY.md) | 6 | Y |
83
+ | [`linear_function_7qF`](model_data/linear_function_7qF.md) | 7 | F |
84
+ | [`linear_function_7qH`](model_data/linear_function_7qH.md) | 7 | H |
85
+ | [`linear_function_7qL`](model_data/linear_function_7qL.md) | 7 | L |
86
+ | [`linear_function_7qT`](model_data/linear_function_7qT.md) | 7 | T |
87
+ | [`linear_function_7qY`](model_data/linear_function_7qY.md) | 7 | Y |
88
+ | [`linear_function_8qF`](model_data/linear_function_8qF.md) | 8 | F |
89
+ | [`linear_function_8qJ`](model_data/linear_function_8qJ.md) | 8 | J |
90
+ | [`linear_function_8qL`](model_data/linear_function_8qL.md) | 8 | L |
91
+ | [`linear_function_8qT1`](model_data/linear_function_8qT1.md) | 8 | T1 |
92
+ | [`linear_function_8qT2`](model_data/linear_function_8qT2.md) | 8 | T2 |
93
+ | [`linear_function_8qY`](model_data/linear_function_8qY.md) | 8 | Y |
94
+ | [`linear_function_9qF1`](model_data/linear_function_9qF1.md) | 9 | F1 |
95
+ | [`linear_function_9qF2`](model_data/linear_function_9qF2.md) | 9 | F2 |
96
+ | [`linear_function_9qH1`](model_data/linear_function_9qH1.md) | 9 | H1 |
97
+ | [`linear_function_9qH2`](model_data/linear_function_9qH2.md) | 9 | H2 |
98
+ | [`linear_function_9qH3`](model_data/linear_function_9qH3.md) | 9 | H3 |
99
+ | [`linear_function_9qJ`](model_data/linear_function_9qJ.md) | 9 | J |
100
+ | [`linear_function_9qL`](model_data/linear_function_9qL.md) | 9 | L |
101
+ | [`linear_function_9qT1`](model_data/linear_function_9qT1.md) | 9 | T1 |
102
+ | [`linear_function_9qT2`](model_data/linear_function_9qT2.md) | 9 | T2 |
103
+ | [`linear_function_9qY`](model_data/linear_function_9qY.md) | 9 | Y |
104
+ | [`linear_function_10qL`](model_data/linear_function_10qL.md) | 10 | L |
105
+ <!-- MODEL_INDEX_END -->
106
+
107
+ ## Acknowledgements
108
+ The authors acknowledge the IBM Research CCC Service for providing resources that have contributed to the production or processing of the data contained within this data collection.
config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "reinforcement_learning",
3
+ "task": "quantum_circuit_synthesis",
4
+ "problem_type": "linear_function_synthesis",
5
+ "framework": "qiskit-gym",
6
+ "license": "apache-2.0",
7
+ "tags": ["quantum-computing", "reinforcement-learning", "circuit-synthesis", "qiskit", "quantum-transpilation", "linear-function-synthesis"],
8
+ "paper": {
9
+ "title": "Practical and efficient quantum circuit synthesis and transpiling with reinforcement learning",
10
+ "authors": ["Kremer, D.", "Villar, V.", "Paik, H.", "Duran, I.", "Faro, I.", "Cruz-Benito, J."],
11
+ "arxiv": "2405.13196",
12
+ "year": 2024
13
+ }
14
+ }
linear_function_10qL.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 10,
5
+ "difficulty": 1024,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 2
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 4
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 6
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 5
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 6,
95
+ 7
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 6
103
+ ]
104
+ ],
105
+ [
106
+ "CX",
107
+ [
108
+ 7,
109
+ 8
110
+ ]
111
+ ],
112
+ [
113
+ "CX",
114
+ [
115
+ 8,
116
+ 7
117
+ ]
118
+ ],
119
+ [
120
+ "CX",
121
+ [
122
+ 8,
123
+ 9
124
+ ]
125
+ ],
126
+ [
127
+ "CX",
128
+ [
129
+ 9,
130
+ 8
131
+ ]
132
+ ]
133
+ ],
134
+ "depth_slope": 2,
135
+ "max_depth": 512,
136
+ "metrics_weights": {
137
+ "n_cnots": 0.1,
138
+ "n_layers_cnots": 0.05,
139
+ "n_layers": 0.05,
140
+ "n_gates": 0.1
141
+ }
142
+ },
143
+ "policy_cls": "twisterl.nn.BasicPolicy",
144
+ "policy": {
145
+ "embedding_size": 512,
146
+ "common_layers": [
147
+ 256
148
+ ],
149
+ "policy_layers": [],
150
+ "value_layers": []
151
+ },
152
+ "algorithm_cls": "twisterl.rl.PPO",
153
+ "algorithm": {
154
+ "collecting": {
155
+ "num_cores": 32,
156
+ "num_episodes": 1024,
157
+ "lambda": 0.995,
158
+ "gamma": 0.995
159
+ },
160
+ "training": {
161
+ "num_epochs": 10,
162
+ "vf_coef": 0.8,
163
+ "ent_coef": 0.01,
164
+ "clip_ratio": 0.1,
165
+ "normalize_advantage": false
166
+ },
167
+ "learning": {
168
+ "diff_threshold": 0.85,
169
+ "diff_max": 1024,
170
+ "diff_metric": "ppo_deterministic"
171
+ },
172
+ "optimizer": {
173
+ "lr": 0.0003
174
+ },
175
+ "evals": {
176
+ "ppo_deterministic": {
177
+ "num_episodes": 100,
178
+ "deterministic": true,
179
+ "num_searches": 1,
180
+ "num_mcts_searches": 0,
181
+ "num_cores": 32,
182
+ "C": 1.41
183
+ },
184
+ "ppo_10": {
185
+ "num_episodes": 100,
186
+ "deterministic": false,
187
+ "num_searches": 10,
188
+ "num_mcts_searches": 0,
189
+ "num_cores": 32,
190
+ "C": 1.41
191
+ }
192
+ },
193
+ "logging": {
194
+ "log_freq": 1,
195
+ "checkpoint_freq": 10
196
+ }
197
+ }
198
+ }
linear_function_10qL.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e559506bc70cb7f6523504243107bacd3eab62030920549985e0b4490a89aa4e
3
+ size 752324
linear_function_2qL.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 2,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ]
21
+ ],
22
+ "depth_slope": 2,
23
+ "max_depth": 128,
24
+ "metrics_weights": {
25
+ "n_cnots": 0.01,
26
+ "n_layers_cnots": 0.01,
27
+ "n_layers": 0.01,
28
+ "n_gates": 0.01
29
+ }
30
+ },
31
+ "policy_cls": "twisterl.nn.BasicPolicy",
32
+ "policy": {
33
+ "embedding_size": 512,
34
+ "common_layers": [
35
+ 256
36
+ ],
37
+ "policy_layers": [],
38
+ "value_layers": []
39
+ },
40
+ "algorithm_cls": "twisterl.rl.PPO",
41
+ "algorithm": {
42
+ "collecting": {
43
+ "num_cores": 32,
44
+ "num_episodes": 1024,
45
+ "lambda": 0.995,
46
+ "gamma": 0.995
47
+ },
48
+ "training": {
49
+ "num_epochs": 10,
50
+ "vf_coef": 0.8,
51
+ "ent_coef": 0.01,
52
+ "clip_ratio": 0.1,
53
+ "normalize_advantage": false
54
+ },
55
+ "learning": {
56
+ "diff_threshold": 0.85,
57
+ "diff_max": 256,
58
+ "diff_metric": "ppo_deterministic"
59
+ },
60
+ "optimizer": {
61
+ "lr": 0.0003
62
+ },
63
+ "evals": {
64
+ "ppo_deterministic": {
65
+ "num_episodes": 100,
66
+ "deterministic": true,
67
+ "num_searches": 1,
68
+ "num_mcts_searches": 0,
69
+ "num_cores": 32,
70
+ "C": 1.41
71
+ },
72
+ "ppo_10": {
73
+ "num_episodes": 100,
74
+ "deterministic": false,
75
+ "num_searches": 10,
76
+ "num_mcts_searches": 0,
77
+ "num_cores": 32,
78
+ "C": 1.41
79
+ }
80
+ },
81
+ "logging": {
82
+ "log_freq": 1,
83
+ "checkpoint_freq": 10
84
+ }
85
+ }
86
+ }
linear_function_2qL.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a887a968b9a3c8df8e4c3608901abea320ae5bd0ecd340bef324b16e68f72ba0
3
+ size 539260
linear_function_3qL.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 3,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 2
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 2
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ]
35
+ ],
36
+ "depth_slope": 2,
37
+ "max_depth": 128,
38
+ "metrics_weights": {
39
+ "n_cnots": 0.01,
40
+ "n_layers_cnots": 0.01,
41
+ "n_layers": 0.01,
42
+ "n_gates": 0.01
43
+ }
44
+ },
45
+ "policy_cls": "twisterl.nn.BasicPolicy",
46
+ "policy": {
47
+ "embedding_size": 512,
48
+ "common_layers": [
49
+ 256
50
+ ],
51
+ "policy_layers": [],
52
+ "value_layers": []
53
+ },
54
+ "algorithm_cls": "twisterl.rl.PPO",
55
+ "algorithm": {
56
+ "collecting": {
57
+ "num_cores": 32,
58
+ "num_episodes": 1024,
59
+ "lambda": 0.995,
60
+ "gamma": 0.995
61
+ },
62
+ "training": {
63
+ "num_epochs": 10,
64
+ "vf_coef": 0.8,
65
+ "ent_coef": 0.01,
66
+ "clip_ratio": 0.1,
67
+ "normalize_advantage": false
68
+ },
69
+ "learning": {
70
+ "diff_threshold": 0.85,
71
+ "diff_max": 256,
72
+ "diff_metric": "ppo_deterministic"
73
+ },
74
+ "optimizer": {
75
+ "lr": 0.0003
76
+ },
77
+ "evals": {
78
+ "ppo_deterministic": {
79
+ "num_episodes": 100,
80
+ "deterministic": true,
81
+ "num_searches": 1,
82
+ "num_mcts_searches": 0,
83
+ "num_cores": 32,
84
+ "C": 1.41
85
+ },
86
+ "ppo_10": {
87
+ "num_episodes": 100,
88
+ "deterministic": false,
89
+ "num_searches": 10,
90
+ "num_mcts_searches": 0,
91
+ "num_cores": 32,
92
+ "C": 1.41
93
+ }
94
+ },
95
+ "logging": {
96
+ "log_freq": 1,
97
+ "checkpoint_freq": 10
98
+ }
99
+ }
100
+ }
linear_function_3qL.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2889afd849a7da4e0b01f3e5b1bb7cc206784202d2dbfa07020e190ace7bfa96
3
+ size 551556
linear_function_4qL.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 4,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 0,
18
+ 3
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 3
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 3,
39
+ 0
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ]
49
+ ],
50
+ "depth_slope": 2,
51
+ "max_depth": 128,
52
+ "metrics_weights": {
53
+ "n_cnots": 0.01,
54
+ "n_layers_cnots": 0.01,
55
+ "n_layers": 0.01,
56
+ "n_gates": 0.01
57
+ }
58
+ },
59
+ "policy_cls": "twisterl.nn.BasicPolicy",
60
+ "policy": {
61
+ "embedding_size": 512,
62
+ "common_layers": [
63
+ 256
64
+ ],
65
+ "policy_layers": [],
66
+ "value_layers": []
67
+ },
68
+ "algorithm_cls": "twisterl.rl.PPO",
69
+ "algorithm": {
70
+ "collecting": {
71
+ "num_cores": 32,
72
+ "num_episodes": 1024,
73
+ "lambda": 0.995,
74
+ "gamma": 0.995
75
+ },
76
+ "training": {
77
+ "num_epochs": 10,
78
+ "vf_coef": 0.8,
79
+ "ent_coef": 0.01,
80
+ "clip_ratio": 0.1,
81
+ "normalize_advantage": false
82
+ },
83
+ "learning": {
84
+ "diff_threshold": 0.85,
85
+ "diff_max": 256,
86
+ "diff_metric": "ppo_deterministic"
87
+ },
88
+ "optimizer": {
89
+ "lr": 0.0003
90
+ },
91
+ "evals": {
92
+ "ppo_deterministic": {
93
+ "num_episodes": 100,
94
+ "deterministic": true,
95
+ "num_searches": 1,
96
+ "num_mcts_searches": 0,
97
+ "num_cores": 32,
98
+ "C": 1.41
99
+ },
100
+ "ppo_10": {
101
+ "num_episodes": 100,
102
+ "deterministic": false,
103
+ "num_searches": 10,
104
+ "num_mcts_searches": 0,
105
+ "num_cores": 32,
106
+ "C": 1.41
107
+ }
108
+ },
109
+ "logging": {
110
+ "log_freq": 1,
111
+ "checkpoint_freq": 10
112
+ }
113
+ }
114
+ }
linear_function_4qL.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:171b540a6c0060dc74395491afde4631516e5f2169dd00fae54736037e500f4f
3
+ size 567948
linear_function_4qY.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 4,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 3
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 3
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 3
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 3,
32
+ 0
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 3,
39
+ 1
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ]
49
+ ],
50
+ "depth_slope": 2,
51
+ "max_depth": 128,
52
+ "metrics_weights": {
53
+ "n_cnots": 0.01,
54
+ "n_layers_cnots": 0.01,
55
+ "n_layers": 0.01,
56
+ "n_gates": 0.01
57
+ }
58
+ },
59
+ "policy_cls": "twisterl.nn.BasicPolicy",
60
+ "policy": {
61
+ "embedding_size": 512,
62
+ "common_layers": [
63
+ 256
64
+ ],
65
+ "policy_layers": [],
66
+ "value_layers": []
67
+ },
68
+ "algorithm_cls": "twisterl.rl.PPO",
69
+ "algorithm": {
70
+ "collecting": {
71
+ "num_cores": 32,
72
+ "num_episodes": 1024,
73
+ "lambda": 0.995,
74
+ "gamma": 0.995
75
+ },
76
+ "training": {
77
+ "num_epochs": 10,
78
+ "vf_coef": 0.8,
79
+ "ent_coef": 0.01,
80
+ "clip_ratio": 0.1,
81
+ "normalize_advantage": false
82
+ },
83
+ "learning": {
84
+ "diff_threshold": 0.85,
85
+ "diff_max": 256,
86
+ "diff_metric": "ppo_deterministic"
87
+ },
88
+ "optimizer": {
89
+ "lr": 0.0003
90
+ },
91
+ "evals": {
92
+ "ppo_deterministic": {
93
+ "num_episodes": 100,
94
+ "deterministic": true,
95
+ "num_searches": 1,
96
+ "num_mcts_searches": 0,
97
+ "num_cores": 32,
98
+ "C": 1.41
99
+ },
100
+ "ppo_10": {
101
+ "num_episodes": 100,
102
+ "deterministic": false,
103
+ "num_searches": 10,
104
+ "num_mcts_searches": 0,
105
+ "num_cores": 32,
106
+ "C": 1.41
107
+ }
108
+ },
109
+ "logging": {
110
+ "log_freq": 1,
111
+ "checkpoint_freq": 10
112
+ }
113
+ }
114
+ }
linear_function_4qY.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8cb13d7c38e282fe129a1d837a374e0cf01e676fdf6a6b013aa2d11ad5df305
3
+ size 567948
linear_function_5qL.json ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 5,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 2
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ]
63
+ ],
64
+ "depth_slope": 2,
65
+ "max_depth": 128,
66
+ "metrics_weights": {
67
+ "n_cnots": 0.01,
68
+ "n_layers_cnots": 0.01,
69
+ "n_layers": 0.01,
70
+ "n_gates": 0.01
71
+ }
72
+ },
73
+ "policy_cls": "twisterl.nn.BasicPolicy",
74
+ "policy": {
75
+ "embedding_size": 512,
76
+ "common_layers": [
77
+ 256
78
+ ],
79
+ "policy_layers": [],
80
+ "value_layers": []
81
+ },
82
+ "algorithm_cls": "twisterl.rl.PPO",
83
+ "algorithm": {
84
+ "collecting": {
85
+ "num_cores": 32,
86
+ "num_episodes": 1024,
87
+ "lambda": 0.995,
88
+ "gamma": 0.995
89
+ },
90
+ "training": {
91
+ "num_epochs": 10,
92
+ "vf_coef": 0.8,
93
+ "ent_coef": 0.01,
94
+ "clip_ratio": 0.1,
95
+ "normalize_advantage": false
96
+ },
97
+ "learning": {
98
+ "diff_threshold": 0.85,
99
+ "diff_max": 256,
100
+ "diff_metric": "ppo_deterministic"
101
+ },
102
+ "optimizer": {
103
+ "lr": 0.0003
104
+ },
105
+ "evals": {
106
+ "ppo_deterministic": {
107
+ "num_episodes": 100,
108
+ "deterministic": true,
109
+ "num_searches": 1,
110
+ "num_mcts_searches": 0,
111
+ "num_cores": 32,
112
+ "C": 1.41
113
+ },
114
+ "ppo_10": {
115
+ "num_episodes": 100,
116
+ "deterministic": false,
117
+ "num_searches": 10,
118
+ "num_mcts_searches": 0,
119
+ "num_cores": 32,
120
+ "C": 1.41
121
+ }
122
+ },
123
+ "logging": {
124
+ "log_freq": 1,
125
+ "checkpoint_freq": 10
126
+ }
127
+ }
128
+ }
linear_function_5qL.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03ec15fac122616f8d43d707af4b7adfe800bb58281f56f628e3cc6bc3c58972
3
+ size 588436
linear_function_5qT.json ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 5,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 2
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 2
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ]
63
+ ],
64
+ "depth_slope": 2,
65
+ "max_depth": 128,
66
+ "metrics_weights": {
67
+ "n_cnots": 0.01,
68
+ "n_layers_cnots": 0.01,
69
+ "n_layers": 0.01,
70
+ "n_gates": 0.01
71
+ }
72
+ },
73
+ "policy_cls": "twisterl.nn.BasicPolicy",
74
+ "policy": {
75
+ "embedding_size": 512,
76
+ "common_layers": [
77
+ 256
78
+ ],
79
+ "policy_layers": [],
80
+ "value_layers": []
81
+ },
82
+ "algorithm_cls": "twisterl.rl.PPO",
83
+ "algorithm": {
84
+ "collecting": {
85
+ "num_cores": 32,
86
+ "num_episodes": 1024,
87
+ "lambda": 0.995,
88
+ "gamma": 0.995
89
+ },
90
+ "training": {
91
+ "num_epochs": 10,
92
+ "vf_coef": 0.8,
93
+ "ent_coef": 0.01,
94
+ "clip_ratio": 0.1,
95
+ "normalize_advantage": false
96
+ },
97
+ "learning": {
98
+ "diff_threshold": 0.85,
99
+ "diff_max": 256,
100
+ "diff_metric": "ppo_deterministic"
101
+ },
102
+ "optimizer": {
103
+ "lr": 0.0003
104
+ },
105
+ "evals": {
106
+ "ppo_deterministic": {
107
+ "num_episodes": 100,
108
+ "deterministic": true,
109
+ "num_searches": 1,
110
+ "num_mcts_searches": 0,
111
+ "num_cores": 32,
112
+ "C": 1.41
113
+ },
114
+ "ppo_10": {
115
+ "num_episodes": 100,
116
+ "deterministic": false,
117
+ "num_searches": 10,
118
+ "num_mcts_searches": 0,
119
+ "num_cores": 32,
120
+ "C": 1.41
121
+ }
122
+ },
123
+ "logging": {
124
+ "log_freq": 1,
125
+ "checkpoint_freq": 10
126
+ }
127
+ }
128
+ }
linear_function_5qT.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26ac5ca65b91c0442ca1e30e2f1270bbf2490b74fef32317bc78eea7d002a583
3
+ size 588436
linear_function_6qL.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 6,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 2
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 4
75
+ ]
76
+ ]
77
+ ],
78
+ "depth_slope": 2,
79
+ "max_depth": 256,
80
+ "metrics_weights": {
81
+ "n_cnots": 0.01,
82
+ "n_layers_cnots": 0.01,
83
+ "n_layers": 0.01,
84
+ "n_gates": 0.01
85
+ }
86
+ },
87
+ "policy_cls": "twisterl.nn.BasicPolicy",
88
+ "policy": {
89
+ "embedding_size": 512,
90
+ "common_layers": [
91
+ 256
92
+ ],
93
+ "policy_layers": [],
94
+ "value_layers": []
95
+ },
96
+ "algorithm_cls": "twisterl.rl.PPO",
97
+ "algorithm": {
98
+ "collecting": {
99
+ "num_cores": 32,
100
+ "num_episodes": 1024,
101
+ "lambda": 0.995,
102
+ "gamma": 0.995
103
+ },
104
+ "training": {
105
+ "num_epochs": 10,
106
+ "vf_coef": 0.8,
107
+ "ent_coef": 0.01,
108
+ "clip_ratio": 0.1,
109
+ "normalize_advantage": false
110
+ },
111
+ "learning": {
112
+ "diff_threshold": 0.85,
113
+ "diff_max": 512,
114
+ "diff_metric": "ppo_deterministic"
115
+ },
116
+ "optimizer": {
117
+ "lr": 0.0003
118
+ },
119
+ "evals": {
120
+ "ppo_deterministic": {
121
+ "num_episodes": 100,
122
+ "deterministic": true,
123
+ "num_searches": 1,
124
+ "num_mcts_searches": 0,
125
+ "num_cores": 32,
126
+ "C": 1.41
127
+ },
128
+ "ppo_10": {
129
+ "num_episodes": 100,
130
+ "deterministic": false,
131
+ "num_searches": 10,
132
+ "num_mcts_searches": 0,
133
+ "num_cores": 32,
134
+ "C": 1.41
135
+ }
136
+ },
137
+ "logging": {
138
+ "log_freq": 1,
139
+ "checkpoint_freq": 10
140
+ }
141
+ }
142
+ }
linear_function_6qL.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b841f05b6489e7a44d45bfa643df096eb516e3bac001325a1ffc093033f108a5
3
+ size 613028
linear_function_6qT.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 6,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 2
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 2
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 4
75
+ ]
76
+ ]
77
+ ],
78
+ "depth_slope": 2,
79
+ "max_depth": 256,
80
+ "metrics_weights": {
81
+ "n_cnots": 0.01,
82
+ "n_layers_cnots": 0.01,
83
+ "n_layers": 0.01,
84
+ "n_gates": 0.01
85
+ }
86
+ },
87
+ "policy_cls": "twisterl.nn.BasicPolicy",
88
+ "policy": {
89
+ "embedding_size": 512,
90
+ "common_layers": [
91
+ 256
92
+ ],
93
+ "policy_layers": [],
94
+ "value_layers": []
95
+ },
96
+ "algorithm_cls": "twisterl.rl.PPO",
97
+ "algorithm": {
98
+ "collecting": {
99
+ "num_cores": 32,
100
+ "num_episodes": 1024,
101
+ "lambda": 0.995,
102
+ "gamma": 0.995
103
+ },
104
+ "training": {
105
+ "num_epochs": 10,
106
+ "vf_coef": 0.8,
107
+ "ent_coef": 0.01,
108
+ "clip_ratio": 0.1,
109
+ "normalize_advantage": false
110
+ },
111
+ "learning": {
112
+ "diff_threshold": 0.85,
113
+ "diff_max": 512,
114
+ "diff_metric": "ppo_deterministic"
115
+ },
116
+ "optimizer": {
117
+ "lr": 0.0003
118
+ },
119
+ "evals": {
120
+ "ppo_deterministic": {
121
+ "num_episodes": 100,
122
+ "deterministic": true,
123
+ "num_searches": 1,
124
+ "num_mcts_searches": 0,
125
+ "num_cores": 32,
126
+ "C": 1.41
127
+ },
128
+ "ppo_10": {
129
+ "num_episodes": 100,
130
+ "deterministic": false,
131
+ "num_searches": 10,
132
+ "num_mcts_searches": 0,
133
+ "num_cores": 32,
134
+ "C": 1.41
135
+ }
136
+ },
137
+ "logging": {
138
+ "log_freq": 1,
139
+ "checkpoint_freq": 10
140
+ }
141
+ }
142
+ }
linear_function_6qT.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:085fcb02ab416a1009b066229df858be88262c59b7dab1effb21b52c01e98fa2
3
+ size 613028
linear_function_6qY.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 6,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 3
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 3
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 3,
39
+ 1
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 4
75
+ ]
76
+ ]
77
+ ],
78
+ "depth_slope": 2,
79
+ "max_depth": 256,
80
+ "metrics_weights": {
81
+ "n_cnots": 0.01,
82
+ "n_layers_cnots": 0.01,
83
+ "n_layers": 0.01,
84
+ "n_gates": 0.01
85
+ }
86
+ },
87
+ "policy_cls": "twisterl.nn.BasicPolicy",
88
+ "policy": {
89
+ "embedding_size": 512,
90
+ "common_layers": [
91
+ 256
92
+ ],
93
+ "policy_layers": [],
94
+ "value_layers": []
95
+ },
96
+ "algorithm_cls": "twisterl.rl.PPO",
97
+ "algorithm": {
98
+ "collecting": {
99
+ "num_cores": 32,
100
+ "num_episodes": 1024,
101
+ "lambda": 0.995,
102
+ "gamma": 0.995
103
+ },
104
+ "training": {
105
+ "num_epochs": 10,
106
+ "vf_coef": 0.8,
107
+ "ent_coef": 0.01,
108
+ "clip_ratio": 0.1,
109
+ "normalize_advantage": false
110
+ },
111
+ "learning": {
112
+ "diff_threshold": 0.85,
113
+ "diff_max": 512,
114
+ "diff_metric": "ppo_deterministic"
115
+ },
116
+ "optimizer": {
117
+ "lr": 0.0003
118
+ },
119
+ "evals": {
120
+ "ppo_deterministic": {
121
+ "num_episodes": 100,
122
+ "deterministic": true,
123
+ "num_searches": 1,
124
+ "num_mcts_searches": 0,
125
+ "num_cores": 32,
126
+ "C": 1.41
127
+ },
128
+ "ppo_10": {
129
+ "num_episodes": 100,
130
+ "deterministic": false,
131
+ "num_searches": 10,
132
+ "num_mcts_searches": 0,
133
+ "num_cores": 32,
134
+ "C": 1.41
135
+ }
136
+ },
137
+ "logging": {
138
+ "log_freq": 1,
139
+ "checkpoint_freq": 10
140
+ }
141
+ }
142
+ }
linear_function_6qY.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45576b41263c6931e4238ed3ea03c1e9cd5f4e16275b008f48ed9807a5bfe903
3
+ size 613028
linear_function_7qF.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 7,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 3
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 3
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 3,
39
+ 1
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 4
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 6
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 5
89
+ ]
90
+ ]
91
+ ],
92
+ "depth_slope": 2,
93
+ "max_depth": 256,
94
+ "metrics_weights": {
95
+ "n_cnots": 0.01,
96
+ "n_layers_cnots": 0.01,
97
+ "n_layers": 0.01,
98
+ "n_gates": 0.01
99
+ }
100
+ },
101
+ "policy_cls": "twisterl.nn.BasicPolicy",
102
+ "policy": {
103
+ "embedding_size": 512,
104
+ "common_layers": [
105
+ 256
106
+ ],
107
+ "policy_layers": [],
108
+ "value_layers": []
109
+ },
110
+ "algorithm_cls": "twisterl.rl.PPO",
111
+ "algorithm": {
112
+ "collecting": {
113
+ "num_cores": 32,
114
+ "num_episodes": 1024,
115
+ "lambda": 0.995,
116
+ "gamma": 0.995
117
+ },
118
+ "training": {
119
+ "num_epochs": 10,
120
+ "vf_coef": 0.8,
121
+ "ent_coef": 0.01,
122
+ "clip_ratio": 0.1,
123
+ "normalize_advantage": false
124
+ },
125
+ "learning": {
126
+ "diff_threshold": 0.85,
127
+ "diff_max": 512,
128
+ "diff_metric": "ppo_deterministic"
129
+ },
130
+ "optimizer": {
131
+ "lr": 0.0003
132
+ },
133
+ "evals": {
134
+ "ppo_deterministic": {
135
+ "num_episodes": 100,
136
+ "deterministic": true,
137
+ "num_searches": 1,
138
+ "num_mcts_searches": 0,
139
+ "num_cores": 32,
140
+ "C": 1.41
141
+ },
142
+ "ppo_10": {
143
+ "num_episodes": 100,
144
+ "deterministic": false,
145
+ "num_searches": 10,
146
+ "num_mcts_searches": 0,
147
+ "num_cores": 32,
148
+ "C": 1.41
149
+ }
150
+ },
151
+ "logging": {
152
+ "log_freq": 1,
153
+ "checkpoint_freq": 10
154
+ }
155
+ }
156
+ }
linear_function_7qF.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e79bbecbab1c66ef1c6456140a32589362857aeb56cff3df9999e5bb7a71e95f
3
+ size 641708
linear_function_7qH.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 7,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 2
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 2
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 4,
74
+ 6
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 4
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 4
89
+ ]
90
+ ]
91
+ ],
92
+ "depth_slope": 2,
93
+ "max_depth": 256,
94
+ "metrics_weights": {
95
+ "n_cnots": 0.01,
96
+ "n_layers_cnots": 0.01,
97
+ "n_layers": 0.01,
98
+ "n_gates": 0.01
99
+ }
100
+ },
101
+ "policy_cls": "twisterl.nn.BasicPolicy",
102
+ "policy": {
103
+ "embedding_size": 512,
104
+ "common_layers": [
105
+ 256
106
+ ],
107
+ "policy_layers": [],
108
+ "value_layers": []
109
+ },
110
+ "algorithm_cls": "twisterl.rl.PPO",
111
+ "algorithm": {
112
+ "collecting": {
113
+ "num_cores": 32,
114
+ "num_episodes": 1024,
115
+ "lambda": 0.995,
116
+ "gamma": 0.995
117
+ },
118
+ "training": {
119
+ "num_epochs": 10,
120
+ "vf_coef": 0.8,
121
+ "ent_coef": 0.01,
122
+ "clip_ratio": 0.1,
123
+ "normalize_advantage": false
124
+ },
125
+ "learning": {
126
+ "diff_threshold": 0.85,
127
+ "diff_max": 512,
128
+ "diff_metric": "ppo_deterministic"
129
+ },
130
+ "optimizer": {
131
+ "lr": 0.0003
132
+ },
133
+ "evals": {
134
+ "ppo_deterministic": {
135
+ "num_episodes": 100,
136
+ "deterministic": true,
137
+ "num_searches": 1,
138
+ "num_mcts_searches": 0,
139
+ "num_cores": 32,
140
+ "C": 1.41
141
+ },
142
+ "ppo_10": {
143
+ "num_episodes": 100,
144
+ "deterministic": false,
145
+ "num_searches": 10,
146
+ "num_mcts_searches": 0,
147
+ "num_cores": 32,
148
+ "C": 1.41
149
+ }
150
+ },
151
+ "logging": {
152
+ "log_freq": 1,
153
+ "checkpoint_freq": 10
154
+ }
155
+ }
156
+ }
linear_function_7qH.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ef82a76f243309557b9678060d26c8629204e7706873b840d3e61068085c8a9
3
+ size 641708
linear_function_7qL.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 7,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 2
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 4
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 6
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 4,
53
+ 2
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 5
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 5,
67
+ 4
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 6
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 6,
81
+ 3
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 5
89
+ ]
90
+ ]
91
+ ],
92
+ "depth_slope": 2,
93
+ "max_depth": 256,
94
+ "metrics_weights": {
95
+ "n_cnots": 0.01,
96
+ "n_layers_cnots": 0.01,
97
+ "n_layers": 0.01,
98
+ "n_gates": 0.01
99
+ }
100
+ },
101
+ "policy_cls": "twisterl.nn.BasicPolicy",
102
+ "policy": {
103
+ "embedding_size": 512,
104
+ "common_layers": [
105
+ 256
106
+ ],
107
+ "policy_layers": [],
108
+ "value_layers": []
109
+ },
110
+ "algorithm_cls": "twisterl.rl.PPO",
111
+ "algorithm": {
112
+ "collecting": {
113
+ "num_cores": 32,
114
+ "num_episodes": 1024,
115
+ "lambda": 0.995,
116
+ "gamma": 0.995
117
+ },
118
+ "training": {
119
+ "num_epochs": 10,
120
+ "vf_coef": 0.8,
121
+ "ent_coef": 0.01,
122
+ "clip_ratio": 0.1,
123
+ "normalize_advantage": false
124
+ },
125
+ "learning": {
126
+ "diff_threshold": 0.85,
127
+ "diff_max": 512,
128
+ "diff_metric": "ppo_deterministic"
129
+ },
130
+ "optimizer": {
131
+ "lr": 0.0003
132
+ },
133
+ "evals": {
134
+ "ppo_deterministic": {
135
+ "num_episodes": 100,
136
+ "deterministic": true,
137
+ "num_searches": 1,
138
+ "num_mcts_searches": 0,
139
+ "num_cores": 32,
140
+ "C": 1.41
141
+ },
142
+ "ppo_10": {
143
+ "num_episodes": 100,
144
+ "deterministic": false,
145
+ "num_searches": 10,
146
+ "num_mcts_searches": 0,
147
+ "num_cores": 32,
148
+ "C": 1.41
149
+ }
150
+ },
151
+ "logging": {
152
+ "log_freq": 1,
153
+ "checkpoint_freq": 10
154
+ }
155
+ }
156
+ }
linear_function_7qL.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f287665ea48dc31c6e6205a9adf13f1304140b4b578a09684787ec246314c62e
3
+ size 641708
linear_function_7qT.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 7,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 2
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 2
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 4
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 6
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 5
89
+ ]
90
+ ]
91
+ ],
92
+ "depth_slope": 2,
93
+ "max_depth": 256,
94
+ "metrics_weights": {
95
+ "n_cnots": 0.01,
96
+ "n_layers_cnots": 0.01,
97
+ "n_layers": 0.01,
98
+ "n_gates": 0.01
99
+ }
100
+ },
101
+ "policy_cls": "twisterl.nn.BasicPolicy",
102
+ "policy": {
103
+ "embedding_size": 512,
104
+ "common_layers": [
105
+ 256
106
+ ],
107
+ "policy_layers": [],
108
+ "value_layers": []
109
+ },
110
+ "algorithm_cls": "twisterl.rl.PPO",
111
+ "algorithm": {
112
+ "collecting": {
113
+ "num_cores": 32,
114
+ "num_episodes": 1024,
115
+ "lambda": 0.995,
116
+ "gamma": 0.995
117
+ },
118
+ "training": {
119
+ "num_epochs": 10,
120
+ "vf_coef": 0.8,
121
+ "ent_coef": 0.01,
122
+ "clip_ratio": 0.1,
123
+ "normalize_advantage": false
124
+ },
125
+ "learning": {
126
+ "diff_threshold": 0.85,
127
+ "diff_max": 512,
128
+ "diff_metric": "ppo_deterministic"
129
+ },
130
+ "optimizer": {
131
+ "lr": 0.0003
132
+ },
133
+ "evals": {
134
+ "ppo_deterministic": {
135
+ "num_episodes": 100,
136
+ "deterministic": true,
137
+ "num_searches": 1,
138
+ "num_mcts_searches": 0,
139
+ "num_cores": 32,
140
+ "C": 1.41
141
+ },
142
+ "ppo_10": {
143
+ "num_episodes": 100,
144
+ "deterministic": false,
145
+ "num_searches": 10,
146
+ "num_mcts_searches": 0,
147
+ "num_cores": 32,
148
+ "C": 1.41
149
+ }
150
+ },
151
+ "logging": {
152
+ "log_freq": 1,
153
+ "checkpoint_freq": 10
154
+ }
155
+ }
156
+ }
linear_function_7qT.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f663d35da85f873afd0412b401a99068d05f07af547e883c89dde39ac8078dc
3
+ size 641708
linear_function_7qY.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 7,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 2
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 2,
46
+ 5
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 2
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 3,
60
+ 4
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 3
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 2
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 6
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 5
89
+ ]
90
+ ]
91
+ ],
92
+ "depth_slope": 2,
93
+ "max_depth": 256,
94
+ "metrics_weights": {
95
+ "n_cnots": 0.01,
96
+ "n_layers_cnots": 0.01,
97
+ "n_layers": 0.01,
98
+ "n_gates": 0.01
99
+ }
100
+ },
101
+ "policy_cls": "twisterl.nn.BasicPolicy",
102
+ "policy": {
103
+ "embedding_size": 512,
104
+ "common_layers": [
105
+ 256
106
+ ],
107
+ "policy_layers": [],
108
+ "value_layers": []
109
+ },
110
+ "algorithm_cls": "twisterl.rl.PPO",
111
+ "algorithm": {
112
+ "collecting": {
113
+ "num_cores": 32,
114
+ "num_episodes": 1024,
115
+ "lambda": 0.995,
116
+ "gamma": 0.995
117
+ },
118
+ "training": {
119
+ "num_epochs": 10,
120
+ "vf_coef": 0.8,
121
+ "ent_coef": 0.01,
122
+ "clip_ratio": 0.1,
123
+ "normalize_advantage": false
124
+ },
125
+ "learning": {
126
+ "diff_threshold": 0.85,
127
+ "diff_max": 512,
128
+ "diff_metric": "ppo_deterministic"
129
+ },
130
+ "optimizer": {
131
+ "lr": 0.0003
132
+ },
133
+ "evals": {
134
+ "ppo_deterministic": {
135
+ "num_episodes": 100,
136
+ "deterministic": true,
137
+ "num_searches": 1,
138
+ "num_mcts_searches": 0,
139
+ "num_cores": 32,
140
+ "C": 1.41
141
+ },
142
+ "ppo_10": {
143
+ "num_episodes": 100,
144
+ "deterministic": false,
145
+ "num_searches": 10,
146
+ "num_mcts_searches": 0,
147
+ "num_cores": 32,
148
+ "C": 1.41
149
+ }
150
+ },
151
+ "logging": {
152
+ "log_freq": 1,
153
+ "checkpoint_freq": 10
154
+ }
155
+ }
156
+ }
linear_function_7qY.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71de5af50f3e947469e3ec94b3842c238d74e1ba504d17202d7c550b99e849dc
3
+ size 641708
linear_function_8qF.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 8,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 3
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 3
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 3,
39
+ 1
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 4
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 6
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 5
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 6,
95
+ 7
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 6
103
+ ]
104
+ ]
105
+ ],
106
+ "depth_slope": 2,
107
+ "max_depth": 512,
108
+ "metrics_weights": {
109
+ "n_cnots": 0.01,
110
+ "n_layers_cnots": 0.01,
111
+ "n_layers": 0.01,
112
+ "n_gates": 0.01
113
+ }
114
+ },
115
+ "policy_cls": "twisterl.nn.BasicPolicy",
116
+ "policy": {
117
+ "embedding_size": 512,
118
+ "common_layers": [
119
+ 256
120
+ ],
121
+ "policy_layers": [],
122
+ "value_layers": []
123
+ },
124
+ "algorithm_cls": "twisterl.rl.PPO",
125
+ "algorithm": {
126
+ "collecting": {
127
+ "num_cores": 32,
128
+ "num_episodes": 1024,
129
+ "lambda": 0.995,
130
+ "gamma": 0.995
131
+ },
132
+ "training": {
133
+ "num_epochs": 10,
134
+ "vf_coef": 0.8,
135
+ "ent_coef": 0.01,
136
+ "clip_ratio": 0.1,
137
+ "normalize_advantage": false
138
+ },
139
+ "learning": {
140
+ "diff_threshold": 0.85,
141
+ "diff_max": 1024,
142
+ "diff_metric": "ppo_deterministic"
143
+ },
144
+ "optimizer": {
145
+ "lr": 0.0003
146
+ },
147
+ "evals": {
148
+ "ppo_deterministic": {
149
+ "num_episodes": 100,
150
+ "deterministic": true,
151
+ "num_searches": 1,
152
+ "num_mcts_searches": 0,
153
+ "num_cores": 32,
154
+ "C": 1.41
155
+ },
156
+ "ppo_10": {
157
+ "num_episodes": 100,
158
+ "deterministic": false,
159
+ "num_searches": 10,
160
+ "num_mcts_searches": 0,
161
+ "num_cores": 32,
162
+ "C": 1.41
163
+ }
164
+ },
165
+ "logging": {
166
+ "log_freq": 1,
167
+ "checkpoint_freq": 10
168
+ }
169
+ }
170
+ }
linear_function_8qF.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84c8eedcd0511bb869738aa874790a4feb9fad0412d8bcbceddf5b0efd71be24
3
+ size 674484
linear_function_8qJ.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 8,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 2
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 2
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 3
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 5
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 4,
74
+ 6
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 4
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 4
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 6,
95
+ 7
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 6
103
+ ]
104
+ ]
105
+ ],
106
+ "depth_slope": 2,
107
+ "max_depth": 512,
108
+ "metrics_weights": {
109
+ "n_cnots": 0.01,
110
+ "n_layers_cnots": 0.01,
111
+ "n_layers": 0.01,
112
+ "n_gates": 0.01
113
+ }
114
+ },
115
+ "policy_cls": "twisterl.nn.BasicPolicy",
116
+ "policy": {
117
+ "embedding_size": 512,
118
+ "common_layers": [
119
+ 256
120
+ ],
121
+ "policy_layers": [],
122
+ "value_layers": []
123
+ },
124
+ "algorithm_cls": "twisterl.rl.PPO",
125
+ "algorithm": {
126
+ "collecting": {
127
+ "num_cores": 32,
128
+ "num_episodes": 1024,
129
+ "lambda": 0.995,
130
+ "gamma": 0.995
131
+ },
132
+ "training": {
133
+ "num_epochs": 10,
134
+ "vf_coef": 0.8,
135
+ "ent_coef": 0.01,
136
+ "clip_ratio": 0.1,
137
+ "normalize_advantage": false
138
+ },
139
+ "learning": {
140
+ "diff_threshold": 0.85,
141
+ "diff_max": 1024,
142
+ "diff_metric": "ppo_deterministic"
143
+ },
144
+ "optimizer": {
145
+ "lr": 0.0003
146
+ },
147
+ "evals": {
148
+ "ppo_deterministic": {
149
+ "num_episodes": 100,
150
+ "deterministic": true,
151
+ "num_searches": 1,
152
+ "num_mcts_searches": 0,
153
+ "num_cores": 32,
154
+ "C": 1.41
155
+ },
156
+ "ppo_10": {
157
+ "num_episodes": 100,
158
+ "deterministic": false,
159
+ "num_searches": 10,
160
+ "num_mcts_searches": 0,
161
+ "num_cores": 32,
162
+ "C": 1.41
163
+ }
164
+ },
165
+ "logging": {
166
+ "log_freq": 1,
167
+ "checkpoint_freq": 10
168
+ }
169
+ }
170
+ }
linear_function_8qJ.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:530489587bdf5830da0894f11fa41319d12c9068654e6985a08af6474bc6976b
3
+ size 674484
linear_function_8qL.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 8,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 3
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 4
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 3,
39
+ 1
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 5
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 4,
53
+ 2
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 7
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 5,
67
+ 3
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 6
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 6,
81
+ 5
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 7
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 7,
95
+ 4
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 6
103
+ ]
104
+ ]
105
+ ],
106
+ "depth_slope": 2,
107
+ "max_depth": 256,
108
+ "metrics_weights": {
109
+ "n_cnots": 0.01,
110
+ "n_layers_cnots": 0.01,
111
+ "n_layers": 0.01,
112
+ "n_gates": 0.01
113
+ }
114
+ },
115
+ "policy_cls": "twisterl.nn.BasicPolicy",
116
+ "policy": {
117
+ "embedding_size": 512,
118
+ "common_layers": [
119
+ 256
120
+ ],
121
+ "policy_layers": [],
122
+ "value_layers": []
123
+ },
124
+ "algorithm_cls": "twisterl.rl.PPO",
125
+ "algorithm": {
126
+ "collecting": {
127
+ "num_cores": 32,
128
+ "num_episodes": 1024,
129
+ "lambda": 0.995,
130
+ "gamma": 0.995
131
+ },
132
+ "training": {
133
+ "num_epochs": 10,
134
+ "vf_coef": 0.8,
135
+ "ent_coef": 0.01,
136
+ "clip_ratio": 0.1,
137
+ "normalize_advantage": false
138
+ },
139
+ "learning": {
140
+ "diff_threshold": 0.85,
141
+ "diff_max": 512,
142
+ "diff_metric": "ppo_deterministic"
143
+ },
144
+ "optimizer": {
145
+ "lr": 0.0003
146
+ },
147
+ "evals": {
148
+ "ppo_deterministic": {
149
+ "num_episodes": 100,
150
+ "deterministic": true,
151
+ "num_searches": 1,
152
+ "num_mcts_searches": 0,
153
+ "num_cores": 32,
154
+ "C": 1.41
155
+ },
156
+ "ppo_10": {
157
+ "num_episodes": 100,
158
+ "deterministic": false,
159
+ "num_searches": 10,
160
+ "num_mcts_searches": 0,
161
+ "num_cores": 32,
162
+ "C": 1.41
163
+ }
164
+ },
165
+ "logging": {
166
+ "log_freq": 1,
167
+ "checkpoint_freq": 10
168
+ }
169
+ }
170
+ }
linear_function_8qL.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00d1174450d4206bacd61eaf81338913040a042fcab050f3acacc1ee4de69074
3
+ size 674484
linear_function_8qT1.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 8,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 2
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 2
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 5
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 7
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 5,
67
+ 3
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 6
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 6,
81
+ 5
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 7
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 7,
95
+ 4
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 6
103
+ ]
104
+ ]
105
+ ],
106
+ "depth_slope": 2,
107
+ "max_depth": 512,
108
+ "metrics_weights": {
109
+ "n_cnots": 0.01,
110
+ "n_layers_cnots": 0.01,
111
+ "n_layers": 0.01,
112
+ "n_gates": 0.01
113
+ }
114
+ },
115
+ "policy_cls": "twisterl.nn.BasicPolicy",
116
+ "policy": {
117
+ "embedding_size": 512,
118
+ "common_layers": [
119
+ 256
120
+ ],
121
+ "policy_layers": [],
122
+ "value_layers": []
123
+ },
124
+ "algorithm_cls": "twisterl.rl.PPO",
125
+ "algorithm": {
126
+ "collecting": {
127
+ "num_cores": 32,
128
+ "num_episodes": 1024,
129
+ "lambda": 0.995,
130
+ "gamma": 0.995
131
+ },
132
+ "training": {
133
+ "num_epochs": 10,
134
+ "vf_coef": 0.8,
135
+ "ent_coef": 0.01,
136
+ "clip_ratio": 0.1,
137
+ "normalize_advantage": false
138
+ },
139
+ "learning": {
140
+ "diff_threshold": 0.85,
141
+ "diff_max": 1024,
142
+ "diff_metric": "ppo_deterministic"
143
+ },
144
+ "optimizer": {
145
+ "lr": 0.0003
146
+ },
147
+ "evals": {
148
+ "ppo_deterministic": {
149
+ "num_episodes": 100,
150
+ "deterministic": true,
151
+ "num_searches": 1,
152
+ "num_mcts_searches": 0,
153
+ "num_cores": 32,
154
+ "C": 1.41
155
+ },
156
+ "ppo_10": {
157
+ "num_episodes": 100,
158
+ "deterministic": false,
159
+ "num_searches": 10,
160
+ "num_mcts_searches": 0,
161
+ "num_cores": 32,
162
+ "C": 1.41
163
+ }
164
+ },
165
+ "logging": {
166
+ "log_freq": 1,
167
+ "checkpoint_freq": 10
168
+ }
169
+ }
170
+ }
linear_function_8qT1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93a5a030b43018ea6abdb90ef45a54a03345e07397924be8bab9edb1e0ce0c83
3
+ size 674484
linear_function_8qT2.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 8,
5
+ "difficulty": 1024,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 2
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 4
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 3,
60
+ 6
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 3
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 4,
74
+ 5
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 4
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 3
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 6,
95
+ 7
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 6
103
+ ]
104
+ ]
105
+ ],
106
+ "depth_slope": 2,
107
+ "max_depth": 512,
108
+ "metrics_weights": {
109
+ "n_cnots": 0.05,
110
+ "n_layers_cnots": 0.05,
111
+ "n_layers": 0.05,
112
+ "n_gates": 0.05
113
+ }
114
+ },
115
+ "policy_cls": "twisterl.nn.BasicPolicy",
116
+ "policy": {
117
+ "embedding_size": 512,
118
+ "common_layers": [
119
+ 256
120
+ ],
121
+ "policy_layers": [],
122
+ "value_layers": []
123
+ },
124
+ "algorithm_cls": "twisterl.rl.PPO",
125
+ "algorithm": {
126
+ "collecting": {
127
+ "num_cores": 32,
128
+ "num_episodes": 1024,
129
+ "lambda": 0.995,
130
+ "gamma": 0.995
131
+ },
132
+ "training": {
133
+ "num_epochs": 10,
134
+ "vf_coef": 0.8,
135
+ "ent_coef": 0.01,
136
+ "clip_ratio": 0.1,
137
+ "normalize_advantage": false
138
+ },
139
+ "learning": {
140
+ "diff_threshold": 0.85,
141
+ "diff_max": 1024,
142
+ "diff_metric": "ppo_deterministic"
143
+ },
144
+ "optimizer": {
145
+ "lr": 0.0003
146
+ },
147
+ "evals": {
148
+ "ppo_deterministic": {
149
+ "num_episodes": 100,
150
+ "deterministic": true,
151
+ "num_searches": 1,
152
+ "num_mcts_searches": 0,
153
+ "num_cores": 32,
154
+ "C": 1.41
155
+ },
156
+ "ppo_10": {
157
+ "num_episodes": 100,
158
+ "deterministic": false,
159
+ "num_searches": 10,
160
+ "num_mcts_searches": 0,
161
+ "num_cores": 32,
162
+ "C": 1.41
163
+ }
164
+ },
165
+ "logging": {
166
+ "log_freq": 1,
167
+ "checkpoint_freq": 10
168
+ }
169
+ }
170
+ }
linear_function_8qT2.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1406279b3dd5a29e6475b0c23860e2a97948245c27db26854f6958b3d65cb88b
3
+ size 674484
linear_function_8qY.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 8,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 2
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 4
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 6
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 4,
53
+ 2
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 5
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 4,
67
+ 7
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 4
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 6
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 3
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 6,
95
+ 5
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 4
103
+ ]
104
+ ]
105
+ ],
106
+ "depth_slope": 2,
107
+ "max_depth": 512,
108
+ "metrics_weights": {
109
+ "n_cnots": 0.01,
110
+ "n_layers_cnots": 0.01,
111
+ "n_layers": 0.01,
112
+ "n_gates": 0.01
113
+ }
114
+ },
115
+ "policy_cls": "twisterl.nn.BasicPolicy",
116
+ "policy": {
117
+ "embedding_size": 512,
118
+ "common_layers": [
119
+ 256
120
+ ],
121
+ "policy_layers": [],
122
+ "value_layers": []
123
+ },
124
+ "algorithm_cls": "twisterl.rl.PPO",
125
+ "algorithm": {
126
+ "collecting": {
127
+ "num_cores": 32,
128
+ "num_episodes": 1024,
129
+ "lambda": 0.995,
130
+ "gamma": 0.995
131
+ },
132
+ "training": {
133
+ "num_epochs": 10,
134
+ "vf_coef": 0.8,
135
+ "ent_coef": 0.01,
136
+ "clip_ratio": 0.1,
137
+ "normalize_advantage": false
138
+ },
139
+ "learning": {
140
+ "diff_threshold": 0.85,
141
+ "diff_max": 1024,
142
+ "diff_metric": "ppo_deterministic"
143
+ },
144
+ "optimizer": {
145
+ "lr": 0.0003
146
+ },
147
+ "evals": {
148
+ "ppo_deterministic": {
149
+ "num_episodes": 100,
150
+ "deterministic": true,
151
+ "num_searches": 1,
152
+ "num_mcts_searches": 0,
153
+ "num_cores": 32,
154
+ "C": 1.41
155
+ },
156
+ "ppo_10": {
157
+ "num_episodes": 100,
158
+ "deterministic": false,
159
+ "num_searches": 10,
160
+ "num_mcts_searches": 0,
161
+ "num_cores": 32,
162
+ "C": 1.41
163
+ }
164
+ },
165
+ "logging": {
166
+ "log_freq": 1,
167
+ "checkpoint_freq": 10
168
+ }
169
+ }
170
+ }
linear_function_8qY.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b39f56e015898a58a9a0a5c4d5c36fce83f5872a46e1b09ee470f32548fef50f
3
+ size 674484
linear_function_9qF1.json ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 9,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 3
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 4
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 3,
39
+ 1
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 5
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 4,
53
+ 2
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 7
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 5,
67
+ 3
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 6
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 6,
81
+ 5
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 7
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 7,
95
+ 4
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 6
103
+ ]
104
+ ],
105
+ [
106
+ "CX",
107
+ [
108
+ 7,
109
+ 8
110
+ ]
111
+ ],
112
+ [
113
+ "CX",
114
+ [
115
+ 8,
116
+ 7
117
+ ]
118
+ ]
119
+ ],
120
+ "depth_slope": 2,
121
+ "max_depth": 512,
122
+ "metrics_weights": {
123
+ "n_cnots": 0.01,
124
+ "n_layers_cnots": 0.01,
125
+ "n_layers": 0.01,
126
+ "n_gates": 0.01
127
+ }
128
+ },
129
+ "policy_cls": "twisterl.nn.BasicPolicy",
130
+ "policy": {
131
+ "embedding_size": 512,
132
+ "common_layers": [
133
+ 256
134
+ ],
135
+ "policy_layers": [],
136
+ "value_layers": []
137
+ },
138
+ "algorithm_cls": "twisterl.rl.PPO",
139
+ "algorithm": {
140
+ "collecting": {
141
+ "num_cores": 32,
142
+ "num_episodes": 1024,
143
+ "lambda": 0.995,
144
+ "gamma": 0.995
145
+ },
146
+ "training": {
147
+ "num_epochs": 10,
148
+ "vf_coef": 0.8,
149
+ "ent_coef": 0.01,
150
+ "clip_ratio": 0.1,
151
+ "normalize_advantage": false
152
+ },
153
+ "learning": {
154
+ "diff_threshold": 0.85,
155
+ "diff_max": 1024,
156
+ "diff_metric": "ppo_deterministic"
157
+ },
158
+ "optimizer": {
159
+ "lr": 0.0003
160
+ },
161
+ "evals": {
162
+ "ppo_deterministic": {
163
+ "num_episodes": 100,
164
+ "deterministic": true,
165
+ "num_searches": 1,
166
+ "num_mcts_searches": 0,
167
+ "num_cores": 32,
168
+ "C": 1.41
169
+ },
170
+ "ppo_10": {
171
+ "num_episodes": 100,
172
+ "deterministic": false,
173
+ "num_searches": 10,
174
+ "num_mcts_searches": 0,
175
+ "num_cores": 32,
176
+ "C": 1.41
177
+ }
178
+ },
179
+ "logging": {
180
+ "log_freq": 1,
181
+ "checkpoint_freq": 10
182
+ }
183
+ }
184
+ }
linear_function_9qF1.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f23669102b162c2a2d35eaa580744b760198de8bd375d7ca6c3e2a1b6cd986c9
3
+ size 711356
linear_function_9qF2.json ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 9,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 1
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 0
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 1,
25
+ 3
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 4
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 3,
39
+ 1
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 5
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 4,
53
+ 2
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 7
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 5,
67
+ 3
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 6
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 5,
81
+ 8
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 5
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 6,
95
+ 7
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 4
103
+ ]
104
+ ],
105
+ [
106
+ "CX",
107
+ [
108
+ 7,
109
+ 6
110
+ ]
111
+ ],
112
+ [
113
+ "CX",
114
+ [
115
+ 8,
116
+ 5
117
+ ]
118
+ ]
119
+ ],
120
+ "depth_slope": 2,
121
+ "max_depth": 512,
122
+ "metrics_weights": {
123
+ "n_cnots": 0.01,
124
+ "n_layers_cnots": 0.01,
125
+ "n_layers": 0.01,
126
+ "n_gates": 0.01
127
+ }
128
+ },
129
+ "policy_cls": "twisterl.nn.BasicPolicy",
130
+ "policy": {
131
+ "embedding_size": 512,
132
+ "common_layers": [
133
+ 256
134
+ ],
135
+ "policy_layers": [],
136
+ "value_layers": []
137
+ },
138
+ "algorithm_cls": "twisterl.rl.PPO",
139
+ "algorithm": {
140
+ "collecting": {
141
+ "num_cores": 32,
142
+ "num_episodes": 1024,
143
+ "lambda": 0.995,
144
+ "gamma": 0.995
145
+ },
146
+ "training": {
147
+ "num_epochs": 10,
148
+ "vf_coef": 0.8,
149
+ "ent_coef": 0.01,
150
+ "clip_ratio": 0.1,
151
+ "normalize_advantage": false
152
+ },
153
+ "learning": {
154
+ "diff_threshold": 0.85,
155
+ "diff_max": 1024,
156
+ "diff_metric": "ppo_deterministic"
157
+ },
158
+ "optimizer": {
159
+ "lr": 0.0003
160
+ },
161
+ "evals": {
162
+ "ppo_deterministic": {
163
+ "num_episodes": 100,
164
+ "deterministic": true,
165
+ "num_searches": 1,
166
+ "num_mcts_searches": 0,
167
+ "num_cores": 32,
168
+ "C": 1.41
169
+ },
170
+ "ppo_10": {
171
+ "num_episodes": 100,
172
+ "deterministic": false,
173
+ "num_searches": 10,
174
+ "num_mcts_searches": 0,
175
+ "num_cores": 32,
176
+ "C": 1.41
177
+ }
178
+ },
179
+ "logging": {
180
+ "log_freq": 1,
181
+ "checkpoint_freq": 10
182
+ }
183
+ }
184
+ }
linear_function_9qF2.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:484e6e360286933e0846774cc9e0fc40d224a7f51c30d365edf066bce2ce6377
3
+ size 711356
linear_function_9qH1.json ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "env_cls": "qiskit_gym.envs.synthesis.LinearFunctionEnv",
3
+ "env": {
4
+ "num_qubits": 9,
5
+ "difficulty": 1,
6
+ "gateset": [
7
+ [
8
+ "CX",
9
+ [
10
+ 0,
11
+ 2
12
+ ]
13
+ ],
14
+ [
15
+ "CX",
16
+ [
17
+ 1,
18
+ 2
19
+ ]
20
+ ],
21
+ [
22
+ "CX",
23
+ [
24
+ 2,
25
+ 0
26
+ ]
27
+ ],
28
+ [
29
+ "CX",
30
+ [
31
+ 2,
32
+ 1
33
+ ]
34
+ ],
35
+ [
36
+ "CX",
37
+ [
38
+ 2,
39
+ 3
40
+ ]
41
+ ],
42
+ [
43
+ "CX",
44
+ [
45
+ 3,
46
+ 2
47
+ ]
48
+ ],
49
+ [
50
+ "CX",
51
+ [
52
+ 3,
53
+ 5
54
+ ]
55
+ ],
56
+ [
57
+ "CX",
58
+ [
59
+ 4,
60
+ 7
61
+ ]
62
+ ],
63
+ [
64
+ "CX",
65
+ [
66
+ 5,
67
+ 3
68
+ ]
69
+ ],
70
+ [
71
+ "CX",
72
+ [
73
+ 5,
74
+ 6
75
+ ]
76
+ ],
77
+ [
78
+ "CX",
79
+ [
80
+ 6,
81
+ 5
82
+ ]
83
+ ],
84
+ [
85
+ "CX",
86
+ [
87
+ 6,
88
+ 7
89
+ ]
90
+ ],
91
+ [
92
+ "CX",
93
+ [
94
+ 7,
95
+ 4
96
+ ]
97
+ ],
98
+ [
99
+ "CX",
100
+ [
101
+ 7,
102
+ 6
103
+ ]
104
+ ],
105
+ [
106
+ "CX",
107
+ [
108
+ 7,
109
+ 8
110
+ ]
111
+ ],
112
+ [
113
+ "CX",
114
+ [
115
+ 8,
116
+ 7
117
+ ]
118
+ ]
119
+ ],
120
+ "depth_slope": 2,
121
+ "max_depth": 512,
122
+ "metrics_weights": {
123
+ "n_cnots": 0.01,
124
+ "n_layers_cnots": 0.01,
125
+ "n_layers": 0.01,
126
+ "n_gates": 0.01
127
+ }
128
+ },
129
+ "policy_cls": "twisterl.nn.BasicPolicy",
130
+ "policy": {
131
+ "embedding_size": 512,
132
+ "common_layers": [
133
+ 256
134
+ ],
135
+ "policy_layers": [],
136
+ "value_layers": []
137
+ },
138
+ "algorithm_cls": "twisterl.rl.PPO",
139
+ "algorithm": {
140
+ "collecting": {
141
+ "num_cores": 32,
142
+ "num_episodes": 1024,
143
+ "lambda": 0.995,
144
+ "gamma": 0.995
145
+ },
146
+ "training": {
147
+ "num_epochs": 10,
148
+ "vf_coef": 0.8,
149
+ "ent_coef": 0.01,
150
+ "clip_ratio": 0.1,
151
+ "normalize_advantage": false
152
+ },
153
+ "learning": {
154
+ "diff_threshold": 0.85,
155
+ "diff_max": 1024,
156
+ "diff_metric": "ppo_deterministic"
157
+ },
158
+ "optimizer": {
159
+ "lr": 0.0003
160
+ },
161
+ "evals": {
162
+ "ppo_deterministic": {
163
+ "num_episodes": 100,
164
+ "deterministic": true,
165
+ "num_searches": 1,
166
+ "num_mcts_searches": 0,
167
+ "num_cores": 32,
168
+ "C": 1.41
169
+ },
170
+ "ppo_10": {
171
+ "num_episodes": 100,
172
+ "deterministic": false,
173
+ "num_searches": 10,
174
+ "num_mcts_searches": 0,
175
+ "num_cores": 32,
176
+ "C": 1.41
177
+ }
178
+ },
179
+ "logging": {
180
+ "log_freq": 1,
181
+ "checkpoint_freq": 10
182
+ }
183
+ }
184
+ }