Skip to content

Commit f59ce5d

Browse files
modified the qaoa notebooks
1 parent d7f218c commit f59ce5d

File tree

11 files changed

+1224
-1295
lines changed

11 files changed

+1224
-1295
lines changed

algorithms/qaoa/knapsack/qaoa_knapsack.ipynb

Lines changed: 0 additions & 462 deletions
This file was deleted.

algorithms/qaoa/knapsack/qaoa_knapsack.metadata.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

algorithms/qaoa/maxcut/qaoa_max_cut.ipynb

Lines changed: 0 additions & 792 deletions
This file was deleted.

algorithms/qaoa/qaoa.ipynb

Lines changed: 1189 additions & 0 deletions
Large diffs are not rendered by default.
File renamed without changes.

algorithms/qaoa/knapsack/qaoa_knapsack.synthesis_options.json renamed to algorithms/qaoa/qaoa_knapsack.synthesis_options.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
{
22
"constraints": {
3+
"max_gate_count": {},
34
"optimization_parameter": "no_opt"
45
},
56
"preferences": {
67
"custom_hardware_settings": {
78
"basis_gates": [
8-
"h",
99
"y",
10-
"u1",
10+
"cz",
1111
"sxdg",
12-
"cx",
13-
"u2",
14-
"sx",
15-
"p",
1612
"rx",
17-
"rz",
13+
"x",
14+
"p",
1815
"id",
16+
"h",
17+
"ry",
18+
"u2",
19+
"u1",
20+
"u",
21+
"tdg",
22+
"rz",
23+
"cx",
24+
"sdg",
1925
"t",
2026
"z",
21-
"u",
2227
"r",
23-
"s",
28+
"sx",
2429
"cy",
25-
"cz",
26-
"sdg",
27-
"x",
28-
"tdg",
29-
"ry"
30+
"s"
3031
],
3132
"is_symmetric_connectivity": true
3233
},
@@ -35,7 +36,7 @@
3536
"optimization_level": 1,
3637
"output_format": ["qasm"],
3738
"pretty_qasm": true,
38-
"random_seed": 3552888076,
39+
"random_seed": 4239501683,
3940
"synthesize_all_separately": false,
4041
"timeout_seconds": 300,
4142
"transpilation_option": "auto optimize"
File renamed without changes.

algorithms/qaoa/maxcut/qaoa_max_cut.synthesis_options.json renamed to algorithms/qaoa/qaoa_max_cut.synthesis_options.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
{
22
"constraints": {
3+
"max_gate_count": {},
34
"optimization_parameter": "no_opt"
45
},
56
"preferences": {
67
"custom_hardware_settings": {
78
"basis_gates": [
8-
"tdg",
9-
"u",
10-
"h",
11-
"sx",
9+
"y",
1210
"cz",
11+
"sxdg",
12+
"rx",
1313
"x",
14+
"p",
1415
"id",
15-
"r",
16-
"sdg",
16+
"h",
17+
"ry",
1718
"u2",
18-
"p",
19-
"z",
20-
"y",
21-
"t",
22-
"sxdg",
2319
"u1",
24-
"cy",
25-
"rx",
20+
"u",
21+
"tdg",
2622
"rz",
2723
"cx",
28-
"ry",
24+
"sdg",
25+
"t",
26+
"z",
27+
"r",
28+
"sx",
29+
"cy",
2930
"s"
3031
],
3132
"is_symmetric_connectivity": true
3233
},
3334
"debug_mode": true,
3435
"machine_precision": 8,
35-
"optimization_level": 3,
36+
"optimization_level": 1,
3637
"output_format": ["qasm"],
3738
"pretty_qasm": true,
38-
"random_seed": 2629849665,
39+
"random_seed": 2148367060,
3940
"synthesize_all_separately": false,
4041
"timeout_seconds": 300,
4142
"transpilation_option": "auto optimize"

tests/resources/timeouts.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,9 @@ prepare_uniform_interval_state.qmod: 10
228228
prepare_uniform_trimmed_state.qmod: 10
229229
protein_folding.ipynb: 240
230230
protein_folding.qmod: 240
231-
qaoa.ipynb: 450
232-
qaoa_knapsack.ipynb: 300
231+
qaoa.ipynb: 600
232+
qaoa_demonstration.ipynb: 450
233233
qaoa_knapsack.qmod: 300
234-
qaoa_max_cut.ipynb: 300
235234
qaoa_max_cut.qmod: 300
236235
qct_qst.ipynb: 30
237236
qct_qst_type1.qmod: 20

0 commit comments

Comments
 (0)