Skip to content

Commit 2d7397a

Browse files
authored
adjust classical wire spacing (#2871)
**AFTER** <img width="349" height="199" alt="image" src="https://github.com/user-attachments/assets/9824418e-ebb7-45eb-8902-5ad8eec55bd0" /> **BEFORE** <img width="353" height="177" alt="image" src="https://github.com/user-attachments/assets/7e79c231-6eea-456e-a10c-0c66c00ba6fa" />
1 parent 634193a commit 2d7397a

14 files changed

+2055
-2055
lines changed

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

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
xmlns="http://www.w3.org/2000/svg"
1515
class="qviz"
1616
width="341"
17-
height="240"
17+
height="292"
1818
style="max-width: fit-content"
19-
viewBox="0 0 341 240"
19+
viewBox="0 0 341 292"
2020
>
2121
<g class="qubit-input-states">
2222
<a href="#" class="qs-circuit-source-link">
@@ -41,7 +41,7 @@
4141
<text
4242
font-size="16"
4343
x="20"
44-
y="164"
44+
y="188"
4545
text-anchor="start"
4646
dominant-baseline="middle"
4747
data-wire="1"
@@ -56,64 +56,64 @@
5656
</g>
5757
<g class="wires">
5858
<line x1="40" x2="341" y1="92" y2="92" class="qubit-wire" />
59-
<line x1="40" x2="341" y1="164" y2="164" class="qubit-wire" />
59+
<line x1="40" x2="341" y1="188" y2="188" class="qubit-wire" />
6060
<g>
6161
<line
6262
x1="242"
6363
x2="242"
6464
y1="92"
65-
y2="131"
65+
y2="135"
6666
class="register-classical"
6767
/>
6868
<line
6969
x1="240"
7070
x2="240"
7171
y1="92"
72-
y2="133"
72+
y2="137"
7373
class="register-classical"
7474
/>
7575
<line
7676
x1="242"
7777
x2="341"
78-
y1="131"
79-
y2="131"
78+
y1="135"
79+
y2="135"
8080
class="register-classical"
8181
/>
8282
<line
8383
x1="240"
8484
x2="341"
85-
y1="133"
86-
y2="133"
85+
y1="137"
86+
y2="137"
8787
class="register-classical"
8888
/>
8989
</g>
9090
<g>
9191
<line
9292
x1="242"
9393
x2="242"
94-
y1="164"
95-
y2="203"
94+
y1="188"
95+
y2="231"
9696
class="register-classical"
9797
/>
9898
<line
9999
x1="240"
100100
x2="240"
101-
y1="164"
102-
y2="205"
101+
y1="188"
102+
y2="233"
103103
class="register-classical"
104104
/>
105105
<line
106106
x1="242"
107107
x2="341"
108-
y1="203"
109-
y2="203"
108+
y1="231"
109+
y2="231"
110110
class="register-classical"
111111
/>
112112
<line
113113
x1="240"
114114
x2="341"
115-
y1="205"
116-
y2="205"
115+
y1="233"
116+
y2="233"
117117
class="register-classical"
118118
/>
119119
</g>
@@ -131,7 +131,7 @@
131131
x="80"
132132
y="46"
133133
width="243"
134-
height="188"
134+
height="216"
135135
fill-opacity="0"
136136
stroke-dasharray="8, 8"
137137
/>
@@ -151,14 +151,14 @@
151151
x="90"
152152
y="72"
153153
width="119"
154-
height="112"
155-
data-wire-ys="[92,164]"
154+
height="136"
155+
data-wire-ys="[92,188]"
156156
data-width="119"
157157
/>
158158
<text
159159
font-size="14"
160160
x="149.5"
161-
y="128"
161+
y="140"
162162
class="qs-maintext"
163163
>
164164
<tspan class="qs-mathtext">PrepareBellPair</tspan>
@@ -217,22 +217,22 @@
217217
<rect
218218
class="gate-measure"
219219
x="221"
220-
y="144"
220+
y="168"
221221
width="40"
222222
height="40"
223-
data-wire-ys="[164]"
223+
data-wire-ys="[188]"
224224
data-width="40"
225225
/>
226226
<path
227227
class="arc-measure"
228-
d="M 256 166 A 15 12 0 0 0 226 166"
228+
d="M 256 190 A 15 12 0 0 0 226 190"
229229
style="pointer-events: none"
230230
/>
231231
<line
232232
x1="241"
233233
x2="253"
234-
y1="172"
235-
y2="152"
234+
y1="196"
235+
y2="176"
236236
class="qs-line-measure"
237237
style="pointer-events: none"
238238
/>
@@ -283,16 +283,16 @@
283283
<rect
284284
class="gate-ket"
285285
x="273"
286-
y="144"
286+
y="168"
287287
width="40"
288288
height="40"
289-
data-wire-ys="[164]"
289+
data-wire-ys="[188]"
290290
data-width="40"
291291
/>
292292
<text
293293
font-size="14"
294294
x="293"
295-
y="164"
295+
y="188"
296296
class="qs-maintext ket-text"
297297
>
298298
|0⟩
@@ -324,9 +324,9 @@
324324
xmlns="http://www.w3.org/2000/svg"
325325
class="qviz"
326326
width="341"
327-
height="276"
327+
height="328"
328328
style="max-width: fit-content"
329-
viewBox="0 0 341 276"
329+
viewBox="0 0 341 328"
330330
>
331331
<g class="qubit-input-states">
332332
<a href="#" class="qs-circuit-source-link">
@@ -351,7 +351,7 @@
351351
<text
352352
font-size="16"
353353
x="20"
354-
y="190"
354+
y="214"
355355
text-anchor="start"
356356
dominant-baseline="middle"
357357
data-wire="1"
@@ -366,64 +366,64 @@
366366
</g>
367367
<g class="wires">
368368
<line x1="40" x2="341" y1="118" y2="118" class="qubit-wire" />
369-
<line x1="40" x2="341" y1="190" y2="190" class="qubit-wire" />
369+
<line x1="40" x2="341" y1="214" y2="214" class="qubit-wire" />
370370
<g>
371371
<line
372372
x1="242"
373373
x2="242"
374374
y1="118"
375-
y2="157"
375+
y2="161"
376376
class="register-classical"
377377
/>
378378
<line
379379
x1="240"
380380
x2="240"
381381
y1="118"
382-
y2="159"
382+
y2="163"
383383
class="register-classical"
384384
/>
385385
<line
386386
x1="242"
387387
x2="341"
388-
y1="157"
389-
y2="157"
388+
y1="161"
389+
y2="161"
390390
class="register-classical"
391391
/>
392392
<line
393393
x1="240"
394394
x2="341"
395-
y1="159"
396-
y2="159"
395+
y1="163"
396+
y2="163"
397397
class="register-classical"
398398
/>
399399
</g>
400400
<g>
401401
<line
402402
x1="242"
403403
x2="242"
404-
y1="190"
405-
y2="229"
404+
y1="214"
405+
y2="257"
406406
class="register-classical"
407407
/>
408408
<line
409409
x1="240"
410410
x2="240"
411-
y1="190"
412-
y2="231"
411+
y1="214"
412+
y2="259"
413413
class="register-classical"
414414
/>
415415
<line
416416
x1="242"
417417
x2="341"
418-
y1="229"
419-
y2="229"
418+
y1="257"
419+
y2="257"
420420
class="register-classical"
421421
/>
422422
<line
423423
x1="240"
424424
x2="341"
425-
y1="231"
426-
y2="231"
425+
y1="259"
426+
y2="259"
427427
class="register-classical"
428428
/>
429429
</g>
@@ -441,7 +441,7 @@
441441
x="80"
442442
y="46"
443443
width="243"
444-
height="214"
444+
height="242"
445445
fill-opacity="0"
446446
stroke-dasharray="8, 8"
447447
/>
@@ -458,7 +458,7 @@
458458
x="90"
459459
y="72"
460460
width="119"
461-
height="148"
461+
height="172"
462462
fill-opacity="0"
463463
stroke-dasharray="8, 8"
464464
/>
@@ -506,7 +506,7 @@
506506
x1="172"
507507
x2="172"
508508
y1="118"
509-
y2="190"
509+
y2="214"
510510
class="control-line"
511511
style="pointer-events: none"
512512
/>
@@ -518,10 +518,10 @@
518518
data-wire-ys="[118]"
519519
data-width="10"
520520
/>
521-
<g class="oplus" data-wire-ys="[190]" data-width="30">
522-
<circle cx="172" cy="190" r="15" />
523-
<line x1="172" x2="172" y1="175" y2="205" />
524-
<line x1="157" x2="187" y1="190" y2="190" />
521+
<g class="oplus" data-wire-ys="[214]" data-width="30">
522+
<circle cx="172" cy="214" r="15" />
523+
<line x1="172" x2="172" y1="199" y2="229" />
524+
<line x1="157" x2="187" y1="214" y2="214" />
525525
</g>
526526
</a>
527527
</g>
@@ -585,22 +585,22 @@
585585
<rect
586586
class="gate-measure"
587587
x="221"
588-
y="170"
588+
y="194"
589589
width="40"
590590
height="40"
591-
data-wire-ys="[190]"
591+
data-wire-ys="[214]"
592592
data-width="40"
593593
/>
594594
<path
595595
class="arc-measure"
596-
d="M 256 192 A 15 12 0 0 0 226 192"
596+
d="M 256 216 A 15 12 0 0 0 226 216"
597597
style="pointer-events: none"
598598
/>
599599
<line
600600
x1="241"
601601
x2="253"
602-
y1="198"
603-
y2="178"
602+
y1="222"
603+
y2="202"
604604
class="qs-line-measure"
605605
style="pointer-events: none"
606606
/>
@@ -651,16 +651,16 @@
651651
<rect
652652
class="gate-ket"
653653
x="273"
654-
y="170"
654+
y="194"
655655
width="40"
656656
height="40"
657-
data-wire-ys="[190]"
657+
data-wire-ys="[214]"
658658
data-width="40"
659659
/>
660660
<text
661661
font-size="14"
662662
x="293"
663-
y="190"
663+
y="214"
664664
class="qs-maintext ket-text"
665665
>
666666
|0⟩

0 commit comments

Comments
 (0)