Skip to content

Commit b984738

Browse files
committed
fixed tests
1 parent 23a2c67 commit b984738

File tree

2 files changed

+24
-28
lines changed

2 files changed

+24
-28
lines changed

src/Quantum/GeneralizedToricCode.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,6 @@ function CSSCode(S::FiniteGeneralizedToricCode)
107107
end
108108
row += 1
109109
end
110-
# println("X stabs")
111-
# display(X_stabs)
112-
# println("Z stabs")
113-
# display(Z_stabs)
114110

115111
return CSSCode(X_stabs, Z_stabs)
116112
end

test/Quantum/GeneralizedToricCode_test.jl

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,191 +10,191 @@
1010
g = 1 + y + x * y;
1111
a1 = (0, 3);
1212
a2 = (2, 1);
13-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
13+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
1414
@test length(C) == 12
1515
@test dimension(C) == 4
1616

1717
f = 1 + x + y;
1818
g = 1 + y + x;
1919
a1 = (0, 7);
2020
a2 = (1, 2);
21-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
21+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
2222
@test length(C) == 14
2323
@test dimension(C) == 6
2424

2525
f = 1 + x + x * y;
2626
g = 1 + y + x * y;
2727
a1 = (0, 3);
2828
a2 = (3, 0);
29-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
29+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
3030
@test length(C) == 18
3131
@test dimension(C) == 4
3232

3333
f = 1 + x + x * y;
3434
g = 1 + y + x * y;
3535
a1 = (0, 3);
3636
a2 = (4, 2);
37-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
37+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
3838
@test length(C) == 24
3939
@test dimension(C) == 4
4040

4141
f = 1 + x + x^-1 * y;
4242
g = 1 + y + x * y;
4343
a1 = (0, 7);
4444
a2 = (2, 3);
45-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
45+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
4646
@test length(C) == 28
4747
@test dimension(C) == 6
4848

4949
f = 1 + x + x^2;
5050
g = 1 + y + x^2;
5151
a1 = (0, 3);
5252
a2 = (5, 1);
53-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
53+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
5454
@test length(C) == 30
5555
@test dimension(C) == 4
5656

5757
f = 1 + x + x^-1;
5858
g = 1 + y + y^-1;
5959
a1 = (0, 9);
6060
a2 = (2, 4);
61-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
61+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
6262
@test length(C) == 36
6363
@test dimension(C) == 4
6464

6565
f = 1 + x + x * y;
6666
g = 1 + y + x * y^-1;
6767
a1 = (0, 7);
6868
a2 = (3, 2);
69-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
69+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
7070
@test length(C) == 42
7171
@test dimension(C) == 6
7272

7373
f = 1 + x + x^2;
7474
g = 1 + y + x^2;
7575
a1 = (0, 3);
7676
a2 = (8, 1);
77-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
77+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
7878
@test length(C) == 48
7979
@test dimension(C) == 4
8080

8181
f = 1 + x + x^-1;
8282
g = 1 + y + x^3 * y^2;
8383
a1 = (0, 3);
8484
a2 = (9, 0);
85-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
85+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
8686
@test length(C) == 54
8787
@test dimension(C) == 8
8888

8989
f = 1 + x + y^-2;
9090
g = 1 + y + x^-2;
9191
a1 = (0, 7);
9292
a2 = (4, 3);
93-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
93+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
9494
@test length(C) == 56
9595
@test dimension(C) == 6
9696

9797
f = 1 + x + y^-2;
9898
g = 1 + y + x^2;
9999
a1 = (0, 10);
100100
a2 = (3, 3);
101-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
101+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
102102
@test length(C) == 60
103103
@test dimension(C) == 8
104104

105105
f = 1 + x + x^-1 * y;
106106
g = 1 + y + x^-1 * y^-1;
107107
a1 = (0, 31);
108108
a2 = (1, 13);
109-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
109+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
110110
@test length(C) == 62
111111
@test dimension(C) == 10
112112

113113
f = 1 + x + x^-2 * y^-1;
114114
g = 1 + y + x^2 * y;
115115
a1 = (0, 3);
116116
a2 = (11, 2);
117-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
117+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
118118
@test length(C) == 66
119119
@test dimension(C) == 4
120120

121121
f = 1 + x + x * y;
122122
g = 1 + y + x * y^-1;
123123
a1 = (0, 7);
124124
a2 = (5, 1);
125-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
125+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
126126
@test length(C) == 70
127127
@test dimension(C) == 6
128128

129129
f = 1 + x + x^-1 * y^3;
130130
g = 1 + y + x^3 * y^-1;
131131
a1 = (0, 12);
132132
a2 = (3, 3);
133-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
133+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
134134
@test length(C) == 72
135135
@test dimension(C) == 8
136136

137137
f = 1 + x + x^-2 * y^-1;
138138
g = 1 + y + x^2 * y;
139139
a1 = (0, 3);
140140
a2 = (13, 1);
141-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
141+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
142142
@test length(C) == 78
143143
@test dimension(C) == 4
144144

145145
f = 1 + x + x^-2;
146146
g = 1 + y + x^-2 * y^2;
147147
a1 = (0, 14);
148148
a2 = (3, -6);
149-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
149+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
150150
@test length(C) == 84
151151
@test dimension(C) == 6
152152

153153
f = 1 + x + x^-1 * y^-3;
154154
g = 1 + y + x^3 * y^-1;
155155
a1 = (0, 15);
156156
a2 = (3, -6);
157-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
157+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
158158
@test length(C) == 90
159159
@test dimension(C) == 8
160160

161161
f = 1 + x + x^-2 * y;
162162
g = 1 + y + x * y^-2;
163163
a1 = (0, 12);
164164
a2 = (4, 2);
165-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
165+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
166166
@test length(C) == 96
167167
@test dimension(C) == 4
168168

169169
f = 1 + x + x^-1 * y^2;
170170
g = 1 + y + x^-2 * y^-1;
171171
a1 = (0, 7);
172172
a2 = (7, 0);
173-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
173+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
174174
@test length(C) == 98
175175
@test dimension(C) == 6
176176

177177
f = 1 + x + x^-3 * y;
178178
g = 1 + y + x^3 * y^2;
179179
a1 = (0, 3);
180180
a2 = (17, 2);
181-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
181+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
182182
@test length(C) == 102
183183
@test dimension(C) == 4
184184

185185
f = 1 + x + x^-1 * y^-3;
186186
g = 1 + y + x^3 * y^-1;
187187
a1 = (0, 9);
188188
a2 = (6, 0);
189-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
189+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
190190
@test length(C) == 108
191191
@test dimension(C) == 8
192192

193193
f = 1 + x + x^-1 * y^3;
194194
g = 1 + y + x^3 * y^-1;
195195
a1 = (0, 9);
196196
a2 = (6, 0);
197-
C = FiniteGeneralizedToricCode(f, g, a1, a2)
197+
C = CSSCode(FiniteGeneralizedToricCode(f, g, a1, a2))
198198
@test length(C) == 108
199199
@test dimension(C) == 8
200200

0 commit comments

Comments
 (0)