Skip to content

Commit 991c61b

Browse files
check warning test
1 parent e358bc1 commit 991c61b

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

algorithms/swap_test/swap_test.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@
8585
" prepare_amplitudes(amps1.tolist(), 0.0, state1)\n",
8686
" prepare_amplitudes(amps2.tolist(), 0.0, state2)\n",
8787
" swap_test(state1, state2, test)\n",
88-
" drop(state1)\n",
89-
" drop(state2)\n",
9088
"\n",
9189
"\n",
9290
"qmod = create_model(main)\n",
@@ -202,7 +200,7 @@
202200
"name": "python",
203201
"nbconvert_exporter": "python",
204202
"pygments_lexer": "ipython3",
205-
"version": "3.11.4"
203+
"version": "3.11.9"
206204
}
207205
},
208206
"nbformat": 4,

algorithms/swap_test/swap_test.qmod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,4 @@ qfunc main(output test: qbit) {
2222
(-0.021570025938839)
2323
], 0.0, state2);
2424
swap_test(state1, state2, test);
25-
drop(state1);
26-
drop(state2);
2725
}

algorithms/swap_test/swap_test.synthesis_options.json

Lines changed: 18 additions & 17 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": [
9+
"sdg",
810
"p",
9-
"h",
10-
"r",
11+
"tdg",
1112
"u",
12-
"t",
1313
"z",
14-
"sxdg",
1514
"u2",
15+
"id",
16+
"r",
1617
"rz",
17-
"cx",
18-
"sx",
19-
"tdg",
20-
"rx",
21-
"s",
22-
"ry",
23-
"sdg",
2418
"cy",
25-
"u1",
26-
"id",
27-
"y",
19+
"t",
20+
"rx",
21+
"sx",
2822
"cz",
29-
"x"
23+
"cx",
24+
"x",
25+
"u1",
26+
"ry",
27+
"sxdg",
28+
"h",
29+
"s",
30+
"y"
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": 2339331037,
39+
"random_seed": 1253468706,
3940
"synthesize_all_separately": false,
4041
"timeout_seconds": 300,
4142
"transpilation_option": "auto optimize"

0 commit comments

Comments
 (0)