Skip to content

Commit e7457ad

Browse files
committed
Documented and improved classical shadows notebook.
1 parent 6afd77a commit e7457ad

File tree

8 files changed

+928
-553
lines changed

8 files changed

+928
-553
lines changed

algorithms/Predicting_Many_Properties_of_a_Quantum_System_from_Very_Few_Measurements/Predicting_Many_Properties_of_a_Quantum_System_from_Very_Few_Measurements.ipynb

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

algorithms/Predicting_Many_Properties_of_a_Quantum_System_from_Very_Few_Measurements/Predicting_Many_Properties_of_a_Quantum_System_from_Very_Few_Measurements.metadata.json

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

algorithms/Predicting_Many_Properties_of_a_Quantum_System_from_Very_Few_Measurements/Predicting_Many_Properties_of_a_Quantum_System_from_Very_Few_Measurements.qmod

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

community/paper_implementation_project/Classical_Shadows/classical_shadows.ipynb

Lines changed: 893 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"friendly_name": "Classical Shadows",
3+
"description": "Classical shadows algorithm demonstrated on a bell state.",
4+
"qmod_type": ["algorithms"],
5+
"problem_domain_tags": [],
6+
"level": ["basic", "demos"]
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
qfunc unitary_application(state: qbit[]) {
2+
H(state[0]);
3+
}
4+
5+
qfunc main(output qarr: qbit[]) {
6+
prepare_bell_state(0, qarr);
7+
unitary_application(qarr);
8+
}
Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,38 @@
77
"machine_precision": 8,
88
"custom_hardware_settings": {
99
"basis_gates": [
10-
"id",
11-
"cx",
12-
"y",
13-
"rz",
14-
"s",
15-
"u",
16-
"h",
10+
"x",
1711
"cy",
18-
"sxdg",
19-
"u2",
12+
"y",
2013
"z",
14+
"ry",
15+
"sx",
16+
"u2",
17+
"s",
2118
"tdg",
22-
"x",
19+
"rx",
20+
"h",
2321
"cz",
24-
"sdg",
22+
"id",
23+
"rz",
24+
"sxdg",
25+
"r",
2526
"u1",
27+
"sdg",
28+
"u",
2629
"p",
27-
"ry",
28-
"r",
2930
"t",
30-
"rx",
31-
"sx"
31+
"cx"
3232
],
3333
"is_symmetric_connectivity": true
3434
},
3535
"debug_mode": true,
3636
"synthesize_all_separately": false,
3737
"optimization_level": 3,
38-
"output_format": [
39-
"qasm"
40-
],
38+
"output_format": ["qasm"],
4139
"pretty_qasm": true,
4240
"transpilation_option": "auto optimize",
4341
"timeout_seconds": 300,
44-
"random_seed": 2608316458
42+
"random_seed": 3766126510
4543
}
46-
}
44+
}

tests/resources/timeouts.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Predicting_Many_Properties_of_a_Quantum_System_from_Very_Few_Measurements: 600
21
3_sat_grover.ipynb: 36
32
3_sat_grover.qmod: 48
43
3_sat_grover_large.qmod: 10
@@ -49,6 +48,8 @@ bitwise_or_integer_example.qmod: 10
4948
bitwise_xor_2vars_example.qmod: 10
5049
bitwise_xor_example.ipynb: 30
5150
bitwise_xor_integer_example.qmod: 10
51+
classical_shadows.ipynb: 300
52+
classical_shadows.qmod: 10
5253
classical_variables_and_operations.ipynb: 20
5354
classical_variables_and_operations.qmod: 10
5455
classiq_discrete_quantum_walk.ipynb: 300

0 commit comments

Comments
 (0)