Skip to content

Commit 6d777de

Browse files
committed
Revert "Update phase_kickback"
This reverts commit aff041c.
1 parent aff041c commit 6d777de

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

tutorials/basic_tutorials/quantum_primitives/phase_kickback/phase_kickback.qmod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
qfunc prepare_minus(target: qbit) {
1+
qfunc prepare_minus(output target: qbit) {
2+
allocate(1, target);
23
X(target);
34
H(target);
45
}
@@ -9,13 +10,11 @@ qfunc oracle_function(target: qbit, x: qnum) {
910

1011
qfunc oracle_phase_kickback(x: qnum) {
1112
target: qbit;
12-
allocate(target);
1313
within {
1414
prepare_minus(target);
1515
} apply {
1616
oracle_function(target, x);
1717
}
18-
free(target);
1918
}
2019

2120
qfunc main(output x: qnum) {

tutorials/basic_tutorials/quantum_primitives/phase_kickback/phase_kickback.synthesis_options.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,41 @@
44
"optimization_parameter": "no_opt"
55
},
66
"preferences": {
7-
"machine_precision": 8,
87
"custom_hardware_settings": {
98
"basis_gates": [
10-
"p",
11-
"rz",
9+
"r",
10+
"ry",
1211
"rx",
13-
"cx",
12+
"u1",
1413
"u2",
15-
"x",
16-
"s",
17-
"y",
14+
"t",
15+
"sdg",
16+
"h",
17+
"cx",
1818
"sx",
19-
"cz",
20-
"tdg",
21-
"ry",
2219
"sxdg",
23-
"u1",
20+
"x",
21+
"tdg",
2422
"u",
25-
"h",
26-
"r",
2723
"cy",
28-
"id",
29-
"t",
3024
"z",
31-
"sdg"
25+
"rz",
26+
"cz",
27+
"p",
28+
"id",
29+
"y",
30+
"s"
3231
],
3332
"is_symmetric_connectivity": true
3433
},
3534
"debug_mode": true,
36-
"synthesize_all_separately": false,
35+
"machine_precision": 8,
3736
"optimization_level": 3,
3837
"output_format": ["qasm"],
3938
"pretty_qasm": true,
40-
"transpilation_option": "auto optimize",
39+
"random_seed": 906707084,
40+
"synthesize_all_separately": false,
4141
"timeout_seconds": 300,
42-
"random_seed": 1413819728
42+
"transpilation_option": "auto optimize"
4343
}
4444
}

0 commit comments

Comments
 (0)