Skip to content

Commit d573eb7

Browse files
committed
remove canvas dependency
1 parent 65c9d96 commit d573eb7

13 files changed

+1974
-2297
lines changed

package-lock.json

Lines changed: 78 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,5 @@
5555
"url": "^0.11.3",
5656
"user-agent-data-types": "^0.4.2",
5757
"vscode-uri": "^3.0.8"
58-
},
59-
"optionalDependencies": {
60-
"canvas": "^3.2.0"
6158
}
6259
}

source/npm/qsharp/test/circuits-cases/bell-pair.qs.snapshot.html

Lines changed: 36 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<svg
1414
xmlns="http://www.w3.org/2000/svg"
1515
class="qviz"
16-
width="378.0478515625"
16+
width="379"
1717
height="200"
1818
style="max-width: fit-content"
19-
viewBox="0 0 378 200"
19+
viewBox="0 0 379 200"
2020
>
2121
<g class="qubit-input-states">
2222
<a href="#" class="qs-circuit-source-link">
@@ -55,75 +55,63 @@
5555
</a>
5656
</g>
5757
<g class="wires">
58-
<line
59-
x1="40"
60-
x2="378.0478515625"
61-
y1="40"
62-
y2="40"
63-
class="qubit-wire"
64-
/>
65-
<line
66-
x1="40"
67-
x2="378.0478515625"
68-
y1="120"
69-
y2="120"
70-
class="qubit-wire"
71-
/>
58+
<line x1="40" x2="379" y1="40" y2="40" class="qubit-wire" />
59+
<line x1="40" x2="379" y1="120" y2="120" class="qubit-wire" />
7260
<g>
7361
<line
74-
x1="249.0478515625"
75-
x2="249.0478515625"
62+
x1="250"
63+
x2="250"
7664
y1="40"
7765
y2="79"
7866
class="register-classical"
7967
/>
8068
<line
81-
x1="247.0478515625"
82-
x2="247.0478515625"
69+
x1="248"
70+
x2="248"
8371
y1="40"
8472
y2="81"
8573
class="register-classical"
8674
/>
8775
<line
88-
x1="249.0478515625"
89-
x2="378.0478515625"
76+
x1="250"
77+
x2="379"
9078
y1="79"
9179
y2="79"
9280
class="register-classical"
9381
/>
9482
<line
95-
x1="247.0478515625"
96-
x2="378.0478515625"
83+
x1="248"
84+
x2="379"
9785
y1="81"
9886
y2="81"
9987
class="register-classical"
10088
/>
10189
</g>
10290
<g>
10391
<line
104-
x1="249.0478515625"
105-
x2="249.0478515625"
92+
x1="250"
93+
x2="250"
10694
y1="120"
10795
y2="159"
10896
class="register-classical"
10997
/>
11098
<line
111-
x1="247.0478515625"
112-
x2="247.0478515625"
99+
x1="248"
100+
x2="248"
113101
y1="120"
114102
y2="161"
115103
class="register-classical"
116104
/>
117105
<line
118-
x1="249.0478515625"
119-
x2="378.0478515625"
106+
x1="250"
107+
x2="379"
120108
y1="159"
121109
y2="159"
122110
class="register-classical"
123111
/>
124112
<line
125-
x1="247.0478515625"
126-
x2="378.0478515625"
113+
x1="248"
114+
x2="379"
127115
y1="161"
128116
y2="161"
129117
class="register-classical"
@@ -142,7 +130,7 @@
142130
class="gate-unitary"
143131
x="60"
144132
y="10"
145-
width="288.0478515625"
133+
width="289"
146134
height="180"
147135
fill-opacity="0"
148136
stroke-dasharray="8, 8"
@@ -162,17 +150,12 @@
162150
class="gate-unitary"
163151
x="90"
164152
y="20"
165-
width="118.0478515625"
153+
width="119"
166154
height="120"
167155
data-wire-ys="[40,120]"
168-
data-width="118.0478515625"
156+
data-width="119"
169157
/>
170-
<text
171-
font-size="14"
172-
x="149.02392578125"
173-
y="80"
174-
class="qs-maintext"
175-
>
158+
<text font-size="14" x="149.5" y="80" class="qs-maintext">
176159
<tspan class="qs-mathtext">PrepareBellPair</tspan>
177160
</text>
178161
</g>
@@ -194,7 +177,7 @@
194177
<g>
195178
<rect
196179
class="gate-measure"
197-
x="228.0478515625"
180+
x="229"
198181
y="20"
199182
width="40"
200183
height="40"
@@ -203,12 +186,12 @@
203186
/>
204187
<path
205188
class="arc-measure"
206-
d="M 263.0478515625 42 A 15 12 0 0 0 233.0478515625 42"
189+
d="M 264 42 A 15 12 0 0 0 234 42"
207190
style="pointer-events: none"
208191
/>
209192
<line
210-
x1="248.0478515625"
211-
x2="260.0478515625"
193+
x1="249"
194+
x2="261"
212195
y1="48"
213196
y2="28"
214197
class="qs-line-measure"
@@ -228,7 +211,7 @@
228211
<g>
229212
<rect
230213
class="gate-measure"
231-
x="228.0478515625"
214+
x="229"
232215
y="100"
233216
width="40"
234217
height="40"
@@ -237,12 +220,12 @@
237220
/>
238221
<path
239222
class="arc-measure"
240-
d="M 263.0478515625 122 A 15 12 0 0 0 233.0478515625 122"
223+
d="M 264 122 A 15 12 0 0 0 234 122"
241224
style="pointer-events: none"
242225
/>
243226
<line
244-
x1="248.0478515625"
245-
x2="260.0478515625"
227+
x1="249"
228+
x2="261"
246229
y1="128"
247230
y2="108"
248231
class="qs-line-measure"
@@ -263,7 +246,7 @@
263246
<g>
264247
<rect
265248
class="gate-ket"
266-
x="288.0478515625"
249+
x="289"
267250
y="20"
268251
width="40"
269252
height="40"
@@ -272,7 +255,7 @@
272255
/>
273256
<text
274257
font-size="14"
275-
x="308.0478515625"
258+
x="309"
276259
y="40"
277260
class="qs-maintext ket-text"
278261
>
@@ -294,7 +277,7 @@
294277
<g>
295278
<rect
296279
class="gate-ket"
297-
x="288.0478515625"
280+
x="289"
298281
y="100"
299282
width="40"
300283
height="40"
@@ -303,7 +286,7 @@
303286
/>
304287
<text
305288
font-size="14"
306-
x="308.0478515625"
289+
x="309"
307290
y="120"
308291
class="qs-maintext ket-text"
309292
>

0 commit comments

Comments
 (0)