File tree Expand file tree Collapse file tree 1 file changed +27
-24
lines changed
Expand file tree Collapse file tree 1 file changed +27
-24
lines changed Original file line number Diff line number Diff line change 99@wrap_testbook ("3sat_oracles" , timeout_seconds = 1800 )
1010def test_notebook (tb : TestbookNotebookClient ) -> None :
1111 expected_widths = [
12- 25 ,
13- 25 ,
14- 27 ,
15- 33 ,
16- 35 ,
17- 34 ,
18- 36 ,
19- 37 ,
20- 40 ,
21- 48 ,
22- 47 ,
23- 45 ,
24- 53 ,
25- 55 ,
26- 64 ,
27- 72 ,
28- 70 ,
29- 82 ,
30- 100 ,
31- 101 ,
32- 110 ,
33- 118 ,
34- 136 ,
35- 137 ,
12+ 39 , # 25
13+ 43 , # 25
14+ 47 , # 27
15+ 51 , # 33
16+ 55 , # 35
17+ 59 , # 34
18+ 63 , # 36
19+ 67 , # 37
20+ 71 , # 40
21+ 75 , # 48
22+ 79 , # 47
23+ 83 , # 45
24+ 87 , # 53
25+ 95 , # 55
26+ 103 , # 64
27+ 119 , # 72
28+ 131 , # 70
29+ 151 , # 82
30+ 167 , # 100
31+ 191 , # 101
32+ 211 , # 110
33+ 239 , # 118
34+ 267 , # 136
35+ # 137,
3636 ]
3737
3838 for qmod in tb .ref ("qmods" ):
3939 validate_quantum_model (qmod )
4040 for qprog , expected_width in zip (tb .ref_pydantic ("qprogs" ), expected_widths ):
41+ # 10% buffer, plus flat 5 for the shorter ones
42+ expected_width = math .ceil (1.1 * expected_width + 5 )
43+
4144 validate_quantum_program_size (
4245 qprog ,
4346 expected_width = expected_width + 5 , # actual width + 5
You can’t perform that action at this time.
0 commit comments