microsoft/qdk

Public

mirrored from https://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
jan

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

source/npm/qsharp/test/circuits-cases/intersecting-wires.qs.snapshot.html

2742lines · modecode

1<!doctype html>
2<html
3 xmlns="http://www.w3.org/1999/xhtml"
4 style="--minToolboxHeight: 150px; --minGateWidth: 40px; --gateHeight: 40px"
5>
6 <head>
7 <link rel="stylesheet" href="../../ux/qsharp-ux.css" />
8 <link rel="stylesheet" href="../../ux/qsharp-circuit.css" />
9 </head>
10 <body>
11 <div><h2>circuit-eval-collapsed</h2></div>
12 <div id="circuit-eval-collapsed" class="qs-circuit">
13 <svg
14 xmlns="http://www.w3.org/2000/svg"
15 class="qviz"
16 width="696.78515625"
17 height="700"
18 style="max-width: fit-content"
19 viewBox="0 0 696 700"
20 >
21 <g class="qubit-input-states">
22 <a href="#" class="qs-circuit-source-link">
23 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
24 <text
25 font-size="16"
26 x="20"
27 y="40"
28 text-anchor="start"
29 dominant-baseline="middle"
30 data-wire="0"
31 class="qs-maintext qs-qubit-label"
32 >
33 |
34 <tspan class="qs-mathtext">ψ</tspan>
35 <tspan baseline-shift="sub" font-size="65%">0</tspan>
36
37 </text>
38 </a>
39 <a href="#" class="qs-circuit-source-link">
40 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
41 <text
42 font-size="16"
43 x="20"
44 y="120"
45 text-anchor="start"
46 dominant-baseline="middle"
47 data-wire="1"
48 class="qs-maintext qs-qubit-label"
49 >
50 |
51 <tspan class="qs-mathtext">ψ</tspan>
52 <tspan baseline-shift="sub" font-size="65%">1</tspan>
53
54 </text>
55 </a>
56 <a href="#" class="qs-circuit-source-link">
57 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
58 <text
59 font-size="16"
60 x="20"
61 y="180"
62 text-anchor="start"
63 dominant-baseline="middle"
64 data-wire="2"
65 class="qs-maintext qs-qubit-label"
66 >
67 |
68 <tspan class="qs-mathtext">ψ</tspan>
69 <tspan baseline-shift="sub" font-size="65%">2</tspan>
70
71 </text>
72 </a>
73 <a href="#" class="qs-circuit-source-link">
74 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
75 <text
76 font-size="16"
77 x="20"
78 y="340"
79 text-anchor="start"
80 dominant-baseline="middle"
81 data-wire="3"
82 class="qs-maintext qs-qubit-label"
83 >
84 |
85 <tspan class="qs-mathtext">ψ</tspan>
86 <tspan baseline-shift="sub" font-size="65%">3</tspan>
87
88 </text>
89 </a>
90 <a href="#" class="qs-circuit-source-link">
91 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
92 <text
93 font-size="16"
94 x="20"
95 y="400"
96 text-anchor="start"
97 dominant-baseline="middle"
98 data-wire="4"
99 class="qs-maintext qs-qubit-label"
100 >
101 |
102 <tspan class="qs-mathtext">ψ</tspan>
103 <tspan baseline-shift="sub" font-size="65%">4</tspan>
104
105 </text>
106 </a>
107 <a href="#" class="qs-circuit-source-link">
108 <title>intersecting-wires.qs:23:5 use q1 = Qubit();</title>
109 <text
110 font-size="16"
111 x="20"
112 y="460"
113 text-anchor="start"
114 dominant-baseline="middle"
115 data-wire="5"
116 class="qs-maintext qs-qubit-label"
117 >
118 |
119 <tspan class="qs-mathtext">ψ</tspan>
120 <tspan baseline-shift="sub" font-size="65%">5</tspan>
121
122 </text>
123 </a>
124 <a href="#" class="qs-circuit-source-link">
125 <title>intersecting-wires.qs:24:5 use q2 = Qubit();</title>
126 <text
127 font-size="16"
128 x="20"
129 y="580"
130 text-anchor="start"
131 dominant-baseline="middle"
132 data-wire="6"
133 class="qs-maintext qs-qubit-label"
134 >
135 |
136 <tspan class="qs-mathtext">ψ</tspan>
137 <tspan baseline-shift="sub" font-size="65%">6</tspan>
138
139 </text>
140 </a>
141 </g>
142 <g class="wires">
143 <line x1="40" x2="696.78515625" y1="40" y2="40" class="qubit-wire" />
144 <line
145 x1="40"
146 x2="696.78515625"
147 y1="120"
148 y2="120"
149 class="qubit-wire"
150 />
151 <line
152 x1="40"
153 x2="696.78515625"
154 y1="180"
155 y2="180"
156 class="qubit-wire"
157 />
158 <line
159 x1="40"
160 x2="696.78515625"
161 y1="340"
162 y2="340"
163 class="qubit-wire"
164 />
165 <line
166 x1="40"
167 x2="696.78515625"
168 y1="400"
169 y2="400"
170 class="qubit-wire"
171 />
172 <line
173 x1="40"
174 x2="696.78515625"
175 y1="460"
176 y2="460"
177 class="qubit-wire"
178 />
179 <line
180 x1="40"
181 x2="696.78515625"
182 y1="580"
183 y2="580"
184 class="qubit-wire"
185 />
186 <g>
187 <line
188 x1="113.06201171875"
189 x2="113.06201171875"
190 y1="40"
191 y2="79"
192 class="register-classical"
193 />
194 <line
195 x1="111.06201171875"
196 x2="111.06201171875"
197 y1="40"
198 y2="81"
199 class="register-classical"
200 />
201 <line
202 x1="113.06201171875"
203 x2="696.78515625"
204 y1="79"
205 y2="79"
206 class="register-classical"
207 />
208 <line
209 x1="111.06201171875"
210 x2="696.78515625"
211 y1="81"
212 y2="81"
213 class="register-classical"
214 />
215 </g>
216 <g>
217 <line
218 x1="383.068359375"
219 x2="383.068359375"
220 y1="180"
221 y2="219"
222 class="register-classical"
223 />
224 <line
225 x1="381.068359375"
226 x2="381.068359375"
227 y1="180"
228 y2="221"
229 class="register-classical"
230 />
231 <line
232 x1="383.068359375"
233 x2="696.78515625"
234 y1="219"
235 y2="219"
236 class="register-classical"
237 />
238 <line
239 x1="381.068359375"
240 x2="696.78515625"
241 y1="221"
242 y2="221"
243 class="register-classical"
244 />
245 </g>
246 <g>
247 <line
248 x1="443.068359375"
249 x2="443.068359375"
250 y1="180"
251 y2="259"
252 class="register-classical"
253 />
254 <line
255 x1="441.068359375"
256 x2="441.068359375"
257 y1="180"
258 y2="261"
259 class="register-classical"
260 />
261 <line
262 x1="443.068359375"
263 x2="696.78515625"
264 y1="259"
265 y2="259"
266 class="register-classical"
267 />
268 <line
269 x1="441.068359375"
270 x2="696.78515625"
271 y1="261"
272 y2="261"
273 class="register-classical"
274 />
275 </g>
276 <g>
277 <line
278 x1="565.4267578125"
279 x2="696.78515625"
280 y1="299"
281 y2="299"
282 class="register-classical"
283 />
284 <line
285 x1="563.4267578125"
286 x2="696.78515625"
287 y1="301"
288 y2="301"
289 class="register-classical"
290 />
291 </g>
292 <g>
293 <line
294 x1="181.0791015625"
295 x2="696.78515625"
296 y1="499"
297 y2="499"
298 class="register-classical"
299 />
300 <line
301 x1="179.0791015625"
302 x2="696.78515625"
303 y1="501"
304 y2="501"
305 class="register-classical"
306 />
307 </g>
308 <g>
309 <line
310 x1="317.11328125"
311 x2="696.78515625"
312 y1="539"
313 y2="539"
314 class="register-classical"
315 />
316 <line
317 x1="315.11328125"
318 x2="696.78515625"
319 y1="541"
320 y2="541"
321 class="register-classical"
322 />
323 </g>
324 <g>
325 <line
326 x1="181.0791015625"
327 x2="696.78515625"
328 y1="619"
329 y2="619"
330 class="register-classical"
331 />
332 <line
333 x1="179.0791015625"
334 x2="696.78515625"
335 y1="621"
336 y2="621"
337 class="register-classical"
338 />
339 </g>
340 <g>
341 <line
342 x1="317.11328125"
343 x2="696.78515625"
344 y1="659"
345 y2="659"
346 class="register-classical"
347 />
348 <line
349 x1="315.11328125"
350 x2="696.78515625"
351 y1="661"
352 y2="661"
353 class="register-classical"
354 />
355 </g>
356 </g>
357 <g>
358 <g
359 class="gate"
360 data-expanded="true"
361 data-location="0,0"
362 data-zoom-out="false"
363 data-zoom-in="true"
364 >
365 <rect
366 class="gate-unitary"
367 x="60"
368 y="10"
369 width="606.78515625"
370 height="680"
371 fill-opacity="0"
372 stroke-dasharray="8, 8"
373 />
374 <g>
375 <a href="#" class="qs-circuit-source-link">
376 <title>intersecting-wires.qs:3:5 M(qs[0]);</title>
377 <g
378 class="gate"
379 data-location="0,0-0,0"
380 data-zoom-out="true"
381 data-zoom-in="false"
382 >
383 <g>
384 <rect
385 class="gate-measure"
386 x="92.06201171875"
387 y="20"
388 width="40"
389 height="40"
390 data-wire-ys="[40]"
391 data-width="40"
392 />
393 <path
394 class="arc-measure"
395 d="M 127.06201171875 42 A 15 12 0 0 0 97.06201171875 42"
396 style="pointer-events: none"
397 />
398 <line
399 x1="112.06201171875"
400 x2="124.06201171875"
401 y1="48"
402 y2="28"
403 class="qs-line-measure"
404 style="pointer-events: none"
405 />
406 </g>
407 </g>
408 </a>
409 <a href="#" class="qs-circuit-source-link">
410 <title>intersecting-wires.qs:5:5 Foo([qs[2], qs[4]]);</title>
411 <g
412 class="gate"
413 data-location="0,0-0,1"
414 data-zoom-out="true"
415 data-zoom-in="false"
416 >
417 <g>
418 <line
419 x1="112.06201171875"
420 x2="112.06201171875"
421 y1="180"
422 y2="400"
423 stroke-dasharray="8, 8"
424 />
425 <g>
426 <rect
427 class="gate-unitary"
428 x="90"
429 y="160"
430 width="44.1240234375"
431 height="40"
432 data-wire-ys="[180]"
433 data-width="44.1240234375"
434 />
435 <text
436 font-size="14"
437 x="112.06201171875"
438 y="180"
439 class="qs-maintext"
440 >
441 <tspan class="qs-mathtext">Foo</tspan>
442 </text>
443 </g>
444 <g>
445 <rect
446 class="gate-unitary"
447 x="90"
448 y="380"
449 width="44.1240234375"
450 height="40"
451 data-wire-ys="[400]"
452 data-width="44.1240234375"
453 />
454 <text
455 font-size="14"
456 x="112.06201171875"
457 y="400"
458 class="qs-maintext"
459 >
460 <tspan class="qs-mathtext">Foo</tspan>
461 </text>
462 </g>
463 </g>
464 </g>
465 </a>
466 <g
467 class="gate"
468 data-location="0,0-0,2"
469 data-zoom-out="true"
470 data-zoom-in="true"
471 >
472 <g>
473 <g>
474 <rect
475 class="gate-unitary"
476 x="91.1689453125"
477 y="440"
478 width="41.7861328125"
479 height="40"
480 data-wire-ys="[460]"
481 data-width="41.7861328125"
482 />
483 <text
484 font-size="14"
485 x="112.06201171875"
486 y="460"
487 class="qs-maintext"
488 >
489 <tspan class="qs-mathtext">Bar</tspan>
490 </text>
491 </g>
492 </g>
493 <g class="gate-control gate-expand">
494 <circle cx="93.1689453125" cy="442" r="10" />
495 <path d="M93.1689453125,435 v14 M86.1689453125,442 h14" />
496 </g>
497 </g>
498 <g
499 class="gate"
500 data-location="0,0-0,3"
501 data-zoom-out="true"
502 data-zoom-in="true"
503 >
504 <g>
505 <g>
506 <rect
507 class="gate-unitary"
508 x="91.1689453125"
509 y="560"
510 width="41.7861328125"
511 height="40"
512 data-wire-ys="[580]"
513 data-width="41.7861328125"
514 />
515 <text
516 font-size="14"
517 x="112.06201171875"
518 y="580"
519 class="qs-maintext"
520 >
521 <tspan class="qs-mathtext">Bar</tspan>
522 </text>
523 </g>
524 </g>
525 <g class="gate-control gate-expand">
526 <circle cx="93.1689453125" cy="562" r="10" />
527 <path d="M93.1689453125,555 v14 M86.1689453125,562 h14" />
528 </g>
529 </g>
530 <a href="#" class="qs-circuit-source-link">
531 <title>intersecting-wires.qs:7:5 Foo(qs[0..1]);</title>
532 <g
533 class="gate"
534 data-location="0,0-1,0"
535 data-zoom-out="true"
536 data-zoom-in="false"
537 >
538 <g>
539 <line
540 x1="180.0791015625"
541 x2="180.0791015625"
542 y1="40"
543 y2="120"
544 stroke-dasharray="8, 8"
545 />
546 <g>
547 <rect
548 class="gate-unitary"
549 x="158.01708984375"
550 y="20"
551 width="44.1240234375"
552 height="40"
553 data-wire-ys="[40]"
554 data-width="44.1240234375"
555 />
556 <text
557 font-size="14"
558 x="180.0791015625"
559 y="40"
560 class="qs-maintext"
561 >
562 <tspan class="qs-mathtext">Foo</tspan>
563 </text>
564 </g>
565 <g>
566 <rect
567 class="gate-unitary"
568 x="158.01708984375"
569 y="100"
570 width="44.1240234375"
571 height="40"
572 data-wire-ys="[120]"
573 data-width="44.1240234375"
574 />
575 <text
576 font-size="14"
577 x="180.0791015625"
578 y="120"
579 class="qs-maintext"
580 >
581 <tspan class="qs-mathtext">Foo</tspan>
582 </text>
583 </g>
584 </g>
585 </g>
586 </a>
587 <a href="#" class="qs-circuit-source-link">
588 <title>intersecting-wires.qs:11:5 Foo(qs[3..4]);</title>
589 <g
590 class="gate"
591 data-location="0,0-1,1"
592 data-zoom-out="true"
593 data-zoom-in="false"
594 >
595 <g>
596 <g>
597 <rect
598 class="gate-unitary"
599 x="158.01708984375"
600 y="320"
601 width="44.1240234375"
602 height="100"
603 data-wire-ys="[340,400]"
604 data-width="44.1240234375"
605 />
606 <text
607 font-size="14"
608 x="180.0791015625"
609 y="370"
610 class="qs-maintext"
611 >
612 <tspan class="qs-mathtext">Foo</tspan>
613 </text>
614 </g>
615 </g>
616 </g>
617 </a>
618 <g
619 class="gate"
620 data-location="0,0-1,2"
621 data-zoom-out="true"
622 data-zoom-in="true"
623 >
624 <g>
625 <g>
626 <rect
627 class="gate-unitary"
628 x="154.1240234375"
629 y="440"
630 width="51.91015625"
631 height="80"
632 data-wire-ys="[460,500]"
633 data-width="51.91015625"
634 />
635 <text
636 font-size="14"
637 x="180.0791015625"
638 y="480"
639 class="qs-maintext"
640 >
641 <tspan class="qs-mathtext">Foo</tspan>
642 2
643 </text>
644 </g>
645 </g>
646 <g class="gate-control gate-expand">
647 <circle cx="156.1240234375" cy="442" r="10" />
648 <path d="M156.1240234375,435 v14 M149.1240234375,442 h14" />
649 </g>
650 </g>
651 <g
652 class="gate"
653 data-location="0,0-1,3"
654 data-zoom-out="true"
655 data-zoom-in="true"
656 >
657 <g>
658 <g>
659 <rect
660 class="gate-unitary"
661 x="154.1240234375"
662 y="560"
663 width="51.91015625"
664 height="80"
665 data-wire-ys="[580,620]"
666 data-width="51.91015625"
667 />
668 <text
669 font-size="14"
670 x="180.0791015625"
671 y="600"
672 class="qs-maintext"
673 >
674 <tspan class="qs-mathtext">Foo</tspan>
675 2
676 </text>
677 </g>
678 </g>
679 <g class="gate-control gate-expand">
680 <circle cx="156.1240234375" cy="562" r="10" />
681 <path d="M156.1240234375,555 v14 M149.1240234375,562 h14" />
682 </g>
683 </g>
684 <a href="#" class="qs-circuit-source-link">
685 <title>intersecting-wires.qs:9:5 Foo([qs[2], qs[0]]);</title>
686 <g
687 class="gate"
688 data-location="0,0-2,0"
689 data-zoom-out="true"
690 data-zoom-in="false"
691 >
692 <g>
693 <line
694 x1="248.09619140625"
695 x2="248.09619140625"
696 y1="40"
697 y2="180"
698 stroke-dasharray="8, 8"
699 />
700 <g>
701 <rect
702 class="gate-unitary"
703 x="226.0341796875"
704 y="20"
705 width="44.1240234375"
706 height="40"
707 data-wire-ys="[40]"
708 data-width="44.1240234375"
709 />
710 <text
711 font-size="14"
712 x="248.09619140625"
713 y="40"
714 class="qs-maintext"
715 >
716 <tspan class="qs-mathtext">Foo</tspan>
717 </text>
718 </g>
719 <g>
720 <rect
721 class="gate-unitary"
722 x="226.0341796875"
723 y="160"
724 width="44.1240234375"
725 height="40"
726 data-wire-ys="[180]"
727 data-width="44.1240234375"
728 />
729 <text
730 font-size="14"
731 x="248.09619140625"
732 y="180"
733 class="qs-maintext"
734 >
735 <tspan class="qs-mathtext">Foo</tspan>
736 </text>
737 </g>
738 </g>
739 </g>
740 </a>
741 <g
742 class="gate"
743 data-location="0,0-2,1"
744 data-zoom-out="true"
745 data-zoom-in="true"
746 >
747 <g>
748 <g>
749 <rect
750 class="gate-unitary"
751 x="227.203125"
752 y="440"
753 width="41.7861328125"
754 height="40"
755 data-wire-ys="[460]"
756 data-width="41.7861328125"
757 />
758 <text
759 font-size="14"
760 x="248.09619140625"
761 y="460"
762 class="qs-maintext"
763 >
764 <tspan class="qs-mathtext">Bar</tspan>
765 </text>
766 </g>
767 </g>
768 <g class="gate-control gate-expand">
769 <circle cx="229.203125" cy="442" r="10" />
770 <path d="M229.203125,435 v14 M222.203125,442 h14" />
771 </g>
772 </g>
773 <g
774 class="gate"
775 data-location="0,0-2,2"
776 data-zoom-out="true"
777 data-zoom-in="true"
778 >
779 <g>
780 <g>
781 <rect
782 class="gate-unitary"
783 x="227.203125"
784 y="560"
785 width="41.7861328125"
786 height="40"
787 data-wire-ys="[580]"
788 data-width="41.7861328125"
789 />
790 <text
791 font-size="14"
792 x="248.09619140625"
793 y="580"
794 class="qs-maintext"
795 >
796 <tspan class="qs-mathtext">Bar</tspan>
797 </text>
798 </g>
799 </g>
800 <g class="gate-control gate-expand">
801 <circle cx="229.203125" cy="562" r="10" />
802 <path d="M229.203125,555 v14 M222.203125,562 h14" />
803 </g>
804 </g>
805 <a href="#" class="qs-circuit-source-link">
806 <title>intersecting-wires.qs:13:5 Foo(qs[0..2]);</title>
807 <g
808 class="gate"
809 data-location="0,0-3,0"
810 data-zoom-out="true"
811 data-zoom-in="false"
812 >
813 <g>
814 <line
815 x1="316.11328125"
816 x2="316.11328125"
817 y1="40"
818 y2="180"
819 stroke-dasharray="8, 8"
820 />
821 <g>
822 <rect
823 class="gate-unitary"
824 x="294.05126953125"
825 y="20"
826 width="44.1240234375"
827 height="40"
828 data-wire-ys="[40]"
829 data-width="44.1240234375"
830 />
831 <text
832 font-size="14"
833 x="316.11328125"
834 y="40"
835 class="qs-maintext"
836 >
837 <tspan class="qs-mathtext">Foo</tspan>
838 </text>
839 </g>
840 <g>
841 <rect
842 class="gate-unitary"
843 x="294.05126953125"
844 y="100"
845 width="44.1240234375"
846 height="100"
847 data-wire-ys="[120,180]"
848 data-width="44.1240234375"
849 />
850 <text
851 font-size="14"
852 x="316.11328125"
853 y="150"
854 class="qs-maintext"
855 >
856 <tspan class="qs-mathtext">Foo</tspan>
857 </text>
858 </g>
859 </g>
860 </g>
861 </a>
862 <g
863 class="gate"
864 data-location="0,0-3,1"
865 data-zoom-out="true"
866 data-zoom-in="true"
867 >
868 <g>
869 <line
870 x1="316.11328125"
871 x2="316.11328125"
872 y1="460"
873 y2="540"
874 stroke-dasharray="8, 8"
875 />
876 <g>
877 <rect
878 class="gate-unitary"
879 x="290.158203125"
880 y="440"
881 width="51.91015625"
882 height="40"
883 data-wire-ys="[460]"
884 data-width="51.91015625"
885 />
886 <text
887 font-size="14"
888 x="316.11328125"
889 y="460"
890 class="qs-maintext"
891 >
892 <tspan class="qs-mathtext">Foo</tspan>
893 2
894 </text>
895 </g>
896 <g>
897 <rect
898 class="gate-unitary"
899 x="290.158203125"
900 y="520"
901 width="51.91015625"
902 height="40"
903 data-wire-ys="[540]"
904 data-width="51.91015625"
905 />
906 <text
907 font-size="14"
908 x="316.11328125"
909 y="540"
910 class="qs-maintext"
911 >
912 <tspan class="qs-mathtext">Foo</tspan>
913 2
914 </text>
915 </g>
916 </g>
917 <g class="gate-control gate-expand">
918 <circle cx="292.158203125" cy="442" r="10" />
919 <path d="M292.158203125,435 v14 M285.158203125,442 h14" />
920 </g>
921 </g>
922 <g
923 class="gate"
924 data-location="0,0-3,2"
925 data-zoom-out="true"
926 data-zoom-in="true"
927 >
928 <g>
929 <line
930 x1="316.11328125"
931 x2="316.11328125"
932 y1="580"
933 y2="660"
934 stroke-dasharray="8, 8"
935 />
936 <g>
937 <rect
938 class="gate-unitary"
939 x="290.158203125"
940 y="560"
941 width="51.91015625"
942 height="40"
943 data-wire-ys="[580]"
944 data-width="51.91015625"
945 />
946 <text
947 font-size="14"
948 x="316.11328125"
949 y="580"
950 class="qs-maintext"
951 >
952 <tspan class="qs-mathtext">Foo</tspan>
953 2
954 </text>
955 </g>
956 <g>
957 <rect
958 class="gate-unitary"
959 x="290.158203125"
960 y="640"
961 width="51.91015625"
962 height="40"
963 data-wire-ys="[660]"
964 data-width="51.91015625"
965 />
966 <text
967 font-size="14"
968 x="316.11328125"
969 y="660"
970 class="qs-maintext"
971 >
972 <tspan class="qs-mathtext">Foo</tspan>
973 2
974 </text>
975 </g>
976 </g>
977 <g class="gate-control gate-expand">
978 <circle cx="292.158203125" cy="562" r="10" />
979 <path d="M292.158203125,555 v14 M285.158203125,562 h14" />
980 </g>
981 </g>
982 <a href="#" class="qs-circuit-source-link">
983 <title>intersecting-wires.qs:16:5 M(qs[2]);</title>
984 <g
985 class="gate"
986 data-location="0,0-4,0"
987 data-zoom-out="true"
988 data-zoom-in="false"
989 >
990 <g>
991 <rect
992 class="gate-measure"
993 x="362.068359375"
994 y="160"
995 width="40"
996 height="40"
997 data-wire-ys="[180]"
998 data-width="40"
999 />
1000 <path
1001 class="arc-measure"
1002 d="M 397.068359375 182 A 15 12 0 0 0 367.068359375 182"
1003 style="pointer-events: none"
1004 />
1005 <line
1006 x1="382.068359375"
1007 x2="394.068359375"
1008 y1="188"
1009 y2="168"
1010 class="qs-line-measure"
1011 style="pointer-events: none"
1012 />
1013 </g>
1014 </g>
1015 </a>
1016 <a href="#" class="qs-circuit-source-link">
1017 <title>intersecting-wires.qs:17:5 M(qs[2]);</title>
1018 <g
1019 class="gate"
1020 data-location="0,0-5,0"
1021 data-zoom-out="true"
1022 data-zoom-in="false"
1023 >
1024 <g>
1025 <rect
1026 class="gate-measure"
1027 x="422.068359375"
1028 y="160"
1029 width="40"
1030 height="40"
1031 data-wire-ys="[180]"
1032 data-width="40"
1033 />
1034 <path
1035 class="arc-measure"
1036 d="M 457.068359375 182 A 15 12 0 0 0 427.068359375 182"
1037 style="pointer-events: none"
1038 />
1039 <line
1040 x1="442.068359375"
1041 x2="454.068359375"
1042 y1="188"
1043 y2="168"
1044 class="qs-line-measure"
1045 style="pointer-events: none"
1046 />
1047 </g>
1048 </g>
1049 </a>
1050 <g
1051 class="gate"
1052 data-location="0,0-6,0"
1053 data-zoom-out="true"
1054 data-zoom-in="true"
1055 >
1056 <g>
1057 <line
1058 x1="564.4267578125"
1059 x2="564.4267578125"
1060 y1="40"
1061 y2="400"
1062 stroke-dasharray="8, 8"
1063 />
1064 <g>
1065 <rect
1066 class="gate-unitary"
1067 x="482.068359375"
1068 y="20"
1069 width="164.716796875"
1070 height="40"
1071 data-wire-ys="[40]"
1072 data-width="164.716796875"
1073 />
1074 <text
1075 font-size="14"
1076 x="564.4267578125"
1077 y="40"
1078 class="qs-maintext"
1079 >
1080 <tspan class="qs-mathtext">BoxWithMeasurements</tspan>
1081 </text>
1082 </g>
1083 <g>
1084 <rect
1085 class="gate-unitary"
1086 x="482.068359375"
1087 y="100"
1088 width="164.716796875"
1089 height="100"
1090 data-wire-ys="[120,180]"
1091 data-width="164.716796875"
1092 />
1093 <text
1094 font-size="14"
1095 x="564.4267578125"
1096 y="150"
1097 class="qs-maintext"
1098 >
1099 <tspan class="qs-mathtext">BoxWithMeasurements</tspan>
1100 </text>
1101 </g>
1102 <g>
1103 <rect
1104 class="gate-unitary"
1105 x="482.068359375"
1106 y="280"
1107 width="164.716796875"
1108 height="140"
1109 data-wire-ys="[300,340,400]"
1110 data-width="164.716796875"
1111 />
1112 <text
1113 font-size="14"
1114 x="564.4267578125"
1115 y="350"
1116 class="qs-maintext"
1117 >
1118 <tspan class="qs-mathtext">BoxWithMeasurements</tspan>
1119 </text>
1120 </g>
1121 </g>
1122 <g class="gate-control gate-expand">
1123 <circle cx="484.068359375" cy="22" r="10" />
1124 <path d="M484.068359375,15 v14 M477.068359375,22 h14" />
1125 </g>
1126 </g>
1127 </g>
1128 <g class="gate-control gate-collapse">
1129 <circle cx="62" cy="12" r="10" />
1130 <path d="M55,12 h14" />
1131 </g>
1132 </g>
1133 </g>
1134 </svg>
1135 </div>
1136 <div><h2>circuit-eval-expanded</h2></div>
1137 <div id="circuit-eval-expanded" class="qs-circuit">
1138 <svg
1139 xmlns="http://www.w3.org/2000/svg"
1140 class="qviz"
1141 width="1070.6201171875"
1142 height="700"
1143 style="max-width: fit-content"
1144 viewBox="0 0 1070 700"
1145 >
1146 <g class="qubit-input-states">
1147 <a href="#" class="qs-circuit-source-link">
1148 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
1149 <text
1150 font-size="16"
1151 x="20"
1152 y="40"
1153 text-anchor="start"
1154 dominant-baseline="middle"
1155 data-wire="0"
1156 class="qs-maintext qs-qubit-label"
1157 >
1158 |
1159 <tspan class="qs-mathtext">ψ</tspan>
1160 <tspan baseline-shift="sub" font-size="65%">0</tspan>
1161
1162 </text>
1163 </a>
1164 <a href="#" class="qs-circuit-source-link">
1165 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
1166 <text
1167 font-size="16"
1168 x="20"
1169 y="120"
1170 text-anchor="start"
1171 dominant-baseline="middle"
1172 data-wire="1"
1173 class="qs-maintext qs-qubit-label"
1174 >
1175 |
1176 <tspan class="qs-mathtext">ψ</tspan>
1177 <tspan baseline-shift="sub" font-size="65%">1</tspan>
1178
1179 </text>
1180 </a>
1181 <a href="#" class="qs-circuit-source-link">
1182 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
1183 <text
1184 font-size="16"
1185 x="20"
1186 y="180"
1187 text-anchor="start"
1188 dominant-baseline="middle"
1189 data-wire="2"
1190 class="qs-maintext qs-qubit-label"
1191 >
1192 |
1193 <tspan class="qs-mathtext">ψ</tspan>
1194 <tspan baseline-shift="sub" font-size="65%">2</tspan>
1195
1196 </text>
1197 </a>
1198 <a href="#" class="qs-circuit-source-link">
1199 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
1200 <text
1201 font-size="16"
1202 x="20"
1203 y="340"
1204 text-anchor="start"
1205 dominant-baseline="middle"
1206 data-wire="3"
1207 class="qs-maintext qs-qubit-label"
1208 >
1209 |
1210 <tspan class="qs-mathtext">ψ</tspan>
1211 <tspan baseline-shift="sub" font-size="65%">3</tspan>
1212
1213 </text>
1214 </a>
1215 <a href="#" class="qs-circuit-source-link">
1216 <title>intersecting-wires.qs:2:5 use qs = Qubit[5];</title>
1217 <text
1218 font-size="16"
1219 x="20"
1220 y="400"
1221 text-anchor="start"
1222 dominant-baseline="middle"
1223 data-wire="4"
1224 class="qs-maintext qs-qubit-label"
1225 >
1226 |
1227 <tspan class="qs-mathtext">ψ</tspan>
1228 <tspan baseline-shift="sub" font-size="65%">4</tspan>
1229
1230 </text>
1231 </a>
1232 <a href="#" class="qs-circuit-source-link">
1233 <title>intersecting-wires.qs:23:5 use q1 = Qubit();</title>
1234 <text
1235 font-size="16"
1236 x="20"
1237 y="460"
1238 text-anchor="start"
1239 dominant-baseline="middle"
1240 data-wire="5"
1241 class="qs-maintext qs-qubit-label"
1242 >
1243 |
1244 <tspan class="qs-mathtext">ψ</tspan>
1245 <tspan baseline-shift="sub" font-size="65%">5</tspan>
1246
1247 </text>
1248 </a>
1249 <a href="#" class="qs-circuit-source-link">
1250 <title>intersecting-wires.qs:24:5 use q2 = Qubit();</title>
1251 <text
1252 font-size="16"
1253 x="20"
1254 y="580"
1255 text-anchor="start"
1256 dominant-baseline="middle"
1257 data-wire="6"
1258 class="qs-maintext qs-qubit-label"
1259 >
1260 |
1261 <tspan class="qs-mathtext">ψ</tspan>
1262 <tspan baseline-shift="sub" font-size="65%">6</tspan>
1263
1264 </text>
1265 </a>
1266 </g>
1267 <g class="wires">
1268 <line
1269 x1="40"
1270 x2="1070.6201171875"
1271 y1="40"
1272 y2="40"
1273 class="qubit-wire"
1274 />
1275 <line
1276 x1="40"
1277 x2="1070.6201171875"
1278 y1="120"
1279 y2="120"
1280 class="qubit-wire"
1281 />
1282 <line
1283 x1="40"
1284 x2="1070.6201171875"
1285 y1="180"
1286 y2="180"
1287 class="qubit-wire"
1288 />
1289 <line
1290 x1="40"
1291 x2="1070.6201171875"
1292 y1="340"
1293 y2="340"
1294 class="qubit-wire"
1295 />
1296 <line
1297 x1="40"
1298 x2="1070.6201171875"
1299 y1="400"
1300 y2="400"
1301 class="qubit-wire"
1302 />
1303 <line
1304 x1="40"
1305 x2="1070.6201171875"
1306 y1="460"
1307 y2="460"
1308 class="qubit-wire"
1309 />
1310 <line
1311 x1="40"
1312 x2="1070.6201171875"
1313 y1="580"
1314 y2="580"
1315 class="qubit-wire"
1316 />
1317 <g>
1318 <line
1319 x1="103.06201171875"
1320 x2="103.06201171875"
1321 y1="40"
1322 y2="79"
1323 class="register-classical"
1324 />
1325 <line
1326 x1="101.06201171875"
1327 x2="101.06201171875"
1328 y1="40"
1329 y2="81"
1330 class="register-classical"
1331 />
1332 <line
1333 x1="103.06201171875"
1334 x2="1070.6201171875"
1335 y1="79"
1336 y2="79"
1337 class="register-classical"
1338 />
1339 <line
1340 x1="101.06201171875"
1341 x2="1070.6201171875"
1342 y1="81"
1343 y2="81"
1344 class="register-classical"
1345 />
1346 </g>
1347 <g>
1348 <line
1349 x1="837.49609375"
1350 x2="837.49609375"
1351 y1="180"
1352 y2="219"
1353 class="register-classical"
1354 />
1355 <line
1356 x1="835.49609375"
1357 x2="835.49609375"
1358 y1="180"
1359 y2="221"
1360 class="register-classical"
1361 />
1362 <line
1363 x1="837.49609375"
1364 x2="1070.6201171875"
1365 y1="219"
1366 y2="219"
1367 class="register-classical"
1368 />
1369 <line
1370 x1="835.49609375"
1371 x2="1070.6201171875"
1372 y1="221"
1373 y2="221"
1374 class="register-classical"
1375 />
1376 </g>
1377 <g>
1378 <line
1379 x1="897.49609375"
1380 x2="897.49609375"
1381 y1="180"
1382 y2="259"
1383 class="register-classical"
1384 />
1385 <line
1386 x1="895.49609375"
1387 x2="895.49609375"
1388 y1="180"
1389 y2="261"
1390 class="register-classical"
1391 />
1392 <line
1393 x1="897.49609375"
1394 x2="1070.6201171875"
1395 y1="259"
1396 y2="259"
1397 class="register-classical"
1398 />
1399 <line
1400 x1="895.49609375"
1401 x2="1070.6201171875"
1402 y1="261"
1403 y2="261"
1404 class="register-classical"
1405 />
1406 </g>
1407 <g>
1408 <line
1409 x1="957.49609375"
1410 x2="957.49609375"
1411 y1="180"
1412 y2="299"
1413 class="register-classical"
1414 />
1415 <line
1416 x1="955.49609375"
1417 x2="955.49609375"
1418 y1="180"
1419 y2="301"
1420 class="register-classical"
1421 />
1422 <line
1423 x1="957.49609375"
1424 x2="1070.6201171875"
1425 y1="299"
1426 y2="299"
1427 class="register-classical"
1428 />
1429 <line
1430 x1="955.49609375"
1431 x2="1070.6201171875"
1432 y1="301"
1433 y2="301"
1434 class="register-classical"
1435 />
1436 </g>
1437 <g>
1438 <line
1439 x1="349.248046875"
1440 x2="349.248046875"
1441 y1="460"
1442 y2="499"
1443 class="register-classical"
1444 />
1445 <line
1446 x1="347.248046875"
1447 x2="347.248046875"
1448 y1="460"
1449 y2="501"
1450 class="register-classical"
1451 />
1452 <line
1453 x1="349.248046875"
1454 x2="1070.6201171875"
1455 y1="499"
1456 y2="499"
1457 class="register-classical"
1458 />
1459 <line
1460 x1="347.248046875"
1461 x2="1070.6201171875"
1462 y1="501"
1463 y2="501"
1464 class="register-classical"
1465 />
1466 </g>
1467 <g>
1468 <line
1469 x1="717.49609375"
1470 x2="717.49609375"
1471 y1="460"
1472 y2="539"
1473 class="register-classical"
1474 />
1475 <line
1476 x1="715.49609375"
1477 x2="715.49609375"
1478 y1="460"
1479 y2="541"
1480 class="register-classical"
1481 />
1482 <line
1483 x1="717.49609375"
1484 x2="1070.6201171875"
1485 y1="539"
1486 y2="539"
1487 class="register-classical"
1488 />
1489 <line
1490 x1="715.49609375"
1491 x2="1070.6201171875"
1492 y1="541"
1493 y2="541"
1494 class="register-classical"
1495 />
1496 </g>
1497 <g>
1498 <line
1499 x1="349.248046875"
1500 x2="349.248046875"
1501 y1="580"
1502 y2="619"
1503 class="register-classical"
1504 />
1505 <line
1506 x1="347.248046875"
1507 x2="347.248046875"
1508 y1="580"
1509 y2="621"
1510 class="register-classical"
1511 />
1512 <line
1513 x1="349.248046875"
1514 x2="1070.6201171875"
1515 y1="619"
1516 y2="619"
1517 class="register-classical"
1518 />
1519 <line
1520 x1="347.248046875"
1521 x2="1070.6201171875"
1522 y1="621"
1523 y2="621"
1524 class="register-classical"
1525 />
1526 </g>
1527 <g>
1528 <line
1529 x1="717.49609375"
1530 x2="717.49609375"
1531 y1="580"
1532 y2="659"
1533 class="register-classical"
1534 />
1535 <line
1536 x1="715.49609375"
1537 x2="715.49609375"
1538 y1="580"
1539 y2="661"
1540 class="register-classical"
1541 />
1542 <line
1543 x1="717.49609375"
1544 x2="1070.6201171875"
1545 y1="659"
1546 y2="659"
1547 class="register-classical"
1548 />
1549 <line
1550 x1="715.49609375"
1551 x2="1070.6201171875"
1552 y1="661"
1553 y2="661"
1554 class="register-classical"
1555 />
1556 </g>
1557 </g>
1558 <g>
1559 <a href="#" class="qs-circuit-source-link">
1560 <title>intersecting-wires.qs:3:5 M(qs[0]);</title>
1561 <g
1562 class="gate"
1563 data-location="0,0-0,0"
1564 data-zoom-out="true"
1565 data-zoom-in="false"
1566 >
1567 <g>
1568 <rect
1569 class="gate-measure"
1570 x="82.06201171875"
1571 y="20"
1572 width="40"
1573 height="40"
1574 data-wire-ys="[40]"
1575 data-width="40"
1576 />
1577 <path
1578 class="arc-measure"
1579 d="M 117.06201171875 42 A 15 12 0 0 0 87.06201171875 42"
1580 style="pointer-events: none"
1581 />
1582 <line
1583 x1="102.06201171875"
1584 x2="114.06201171875"
1585 y1="48"
1586 y2="28"
1587 class="qs-line-measure"
1588 style="pointer-events: none"
1589 />
1590 </g>
1591 </g>
1592 </a>
1593 <a href="#" class="qs-circuit-source-link">
1594 <title>intersecting-wires.qs:5:5 Foo([qs[2], qs[4]]);</title>
1595 <g
1596 class="gate"
1597 data-location="0,0-0,1"
1598 data-zoom-out="true"
1599 data-zoom-in="false"
1600 >
1601 <g>
1602 <line
1603 x1="102.06201171875"
1604 x2="102.06201171875"
1605 y1="180"
1606 y2="400"
1607 stroke-dasharray="8, 8"
1608 />
1609 <g>
1610 <rect
1611 class="gate-unitary"
1612 x="80"
1613 y="160"
1614 width="44.1240234375"
1615 height="40"
1616 data-wire-ys="[180]"
1617 data-width="44.1240234375"
1618 />
1619 <text
1620 font-size="14"
1621 x="102.06201171875"
1622 y="180"
1623 class="qs-maintext"
1624 >
1625 <tspan class="qs-mathtext">Foo</tspan>
1626 </text>
1627 </g>
1628 <g>
1629 <rect
1630 class="gate-unitary"
1631 x="80"
1632 y="380"
1633 width="44.1240234375"
1634 height="40"
1635 data-wire-ys="[400]"
1636 data-width="44.1240234375"
1637 />
1638 <text
1639 font-size="14"
1640 x="102.06201171875"
1641 y="400"
1642 class="qs-maintext"
1643 >
1644 <tspan class="qs-mathtext">Foo</tspan>
1645 </text>
1646 </g>
1647 </g>
1648 </g>
1649 </a>
1650 <a href="#" class="qs-circuit-source-link">
1651 <title>intersecting-wires.qs:41:5 X(q);</title>
1652 <g
1653 class="gate"
1654 data-location="0,0-0,2-0,0"
1655 data-zoom-out="true"
1656 data-zoom-in="false"
1657 >
1658 <g class="oplus" data-wire-ys="[460]" data-width="30">
1659 <circle cx="102.06201171875" cy="460" r="15" />
1660 <line
1661 x1="102.06201171875"
1662 x2="102.06201171875"
1663 y1="445"
1664 y2="475"
1665 />
1666 <line
1667 x1="87.06201171875"
1668 x2="117.06201171875"
1669 y1="460"
1670 y2="460"
1671 />
1672 </g>
1673 </g>
1674 </a>
1675 <a href="#" class="qs-circuit-source-link">
1676 <title>intersecting-wires.qs:41:5 X(q);</title>
1677 <g
1678 class="gate"
1679 data-location="0,0-0,3-0,0"
1680 data-zoom-out="true"
1681 data-zoom-in="false"
1682 >
1683 <g class="oplus" data-wire-ys="[580]" data-width="30">
1684 <circle cx="102.06201171875" cy="580" r="15" />
1685 <line
1686 x1="102.06201171875"
1687 x2="102.06201171875"
1688 y1="565"
1689 y2="595"
1690 />
1691 <line
1692 x1="87.06201171875"
1693 x2="117.06201171875"
1694 y1="580"
1695 y2="580"
1696 />
1697 </g>
1698 </g>
1699 </a>
1700 <a href="#" class="qs-circuit-source-link">
1701 <title>intersecting-wires.qs:42:5 Y(q);</title>
1702 <g
1703 class="gate"
1704 data-location="0,0-0,2-1,0"
1705 data-zoom-out="true"
1706 data-zoom-in="false"
1707 >
1708 <g>
1709 <g>
1710 <rect
1711 class="gate-unitary"
1712 x="144.1240234375"
1713 y="440"
1714 width="40"
1715 height="40"
1716 data-wire-ys="[460]"
1717 data-width="40"
1718 />
1719 <text
1720 font-size="14"
1721 x="164.1240234375"
1722 y="460"
1723 class="qs-maintext"
1724 >
1725 <tspan class="qs-mathtext">Y</tspan>
1726 </text>
1727 </g>
1728 </g>
1729 </g>
1730 </a>
1731 <a href="#" class="qs-circuit-source-link">
1732 <title>intersecting-wires.qs:42:5 Y(q);</title>
1733 <g
1734 class="gate"
1735 data-location="0,0-0,3-1,0"
1736 data-zoom-out="true"
1737 data-zoom-in="false"
1738 >
1739 <g>
1740 <g>
1741 <rect
1742 class="gate-unitary"
1743 x="144.1240234375"
1744 y="560"
1745 width="40"
1746 height="40"
1747 data-wire-ys="[580]"
1748 data-width="40"
1749 />
1750 <text
1751 font-size="14"
1752 x="164.1240234375"
1753 y="580"
1754 class="qs-maintext"
1755 >
1756 <tspan class="qs-mathtext">Y</tspan>
1757 </text>
1758 </g>
1759 </g>
1760 </g>
1761 </a>
1762 <a href="#" class="qs-circuit-source-link">
1763 <title>intersecting-wires.qs:7:5 Foo(qs[0..1]);</title>
1764 <g
1765 class="gate"
1766 data-location="0,0-1,0"
1767 data-zoom-out="true"
1768 data-zoom-in="false"
1769 >
1770 <g>
1771 <line
1772 x1="226.18603515625"
1773 x2="226.18603515625"
1774 y1="40"
1775 y2="120"
1776 stroke-dasharray="8, 8"
1777 />
1778 <g>
1779 <rect
1780 class="gate-unitary"
1781 x="204.1240234375"
1782 y="20"
1783 width="44.1240234375"
1784 height="40"
1785 data-wire-ys="[40]"
1786 data-width="44.1240234375"
1787 />
1788 <text
1789 font-size="14"
1790 x="226.18603515625"
1791 y="40"
1792 class="qs-maintext"
1793 >
1794 <tspan class="qs-mathtext">Foo</tspan>
1795 </text>
1796 </g>
1797 <g>
1798 <rect
1799 class="gate-unitary"
1800 x="204.1240234375"
1801 y="100"
1802 width="44.1240234375"
1803 height="40"
1804 data-wire-ys="[120]"
1805 data-width="44.1240234375"
1806 />
1807 <text
1808 font-size="14"
1809 x="226.18603515625"
1810 y="120"
1811 class="qs-maintext"
1812 >
1813 <tspan class="qs-mathtext">Foo</tspan>
1814 </text>
1815 </g>
1816 </g>
1817 </g>
1818 </a>
1819 <a href="#" class="qs-circuit-source-link">
1820 <title>intersecting-wires.qs:11:5 Foo(qs[3..4]);</title>
1821 <g
1822 class="gate"
1823 data-location="0,0-1,1"
1824 data-zoom-out="true"
1825 data-zoom-in="false"
1826 >
1827 <g>
1828 <g>
1829 <rect
1830 class="gate-unitary"
1831 x="204.1240234375"
1832 y="320"
1833 width="44.1240234375"
1834 height="100"
1835 data-wire-ys="[340,400]"
1836 data-width="44.1240234375"
1837 />
1838 <text
1839 font-size="14"
1840 x="226.18603515625"
1841 y="370"
1842 class="qs-maintext"
1843 >
1844 <tspan class="qs-mathtext">Foo</tspan>
1845 </text>
1846 </g>
1847 </g>
1848 </g>
1849 </a>
1850 <a href="#" class="qs-circuit-source-link">
1851 <title>intersecting-wires.qs:41:5 X(q);</title>
1852 <g
1853 class="gate"
1854 data-location="0,0-1,2-0,0-0,0"
1855 data-zoom-out="true"
1856 data-zoom-in="false"
1857 >
1858 <g class="oplus" data-wire-ys="[460]" data-width="30">
1859 <circle cx="226.18603515625" cy="460" r="15" />
1860 <line
1861 x1="226.18603515625"
1862 x2="226.18603515625"
1863 y1="445"
1864 y2="475"
1865 />
1866 <line
1867 x1="211.18603515625"
1868 x2="241.18603515625"
1869 y1="460"
1870 y2="460"
1871 />
1872 </g>
1873 </g>
1874 </a>
1875 <a href="#" class="qs-circuit-source-link">
1876 <title>intersecting-wires.qs:41:5 X(q);</title>
1877 <g
1878 class="gate"
1879 data-location="0,0-1,3-0,0-0,0"
1880 data-zoom-out="true"
1881 data-zoom-in="false"
1882 >
1883 <g class="oplus" data-wire-ys="[580]" data-width="30">
1884 <circle cx="226.18603515625" cy="580" r="15" />
1885 <line
1886 x1="226.18603515625"
1887 x2="226.18603515625"
1888 y1="565"
1889 y2="595"
1890 />
1891 <line
1892 x1="211.18603515625"
1893 x2="241.18603515625"
1894 y1="580"
1895 y2="580"
1896 />
1897 </g>
1898 </g>
1899 </a>
1900 <a href="#" class="qs-circuit-source-link">
1901 <title>intersecting-wires.qs:42:5 Y(q);</title>
1902 <g
1903 class="gate"
1904 data-location="0,0-1,2-0,0-1,0"
1905 data-zoom-out="true"
1906 data-zoom-in="false"
1907 >
1908 <g>
1909 <g>
1910 <rect
1911 class="gate-unitary"
1912 x="268.248046875"
1913 y="440"
1914 width="40"
1915 height="40"
1916 data-wire-ys="[460]"
1917 data-width="40"
1918 />
1919 <text
1920 font-size="14"
1921 x="288.248046875"
1922 y="460"
1923 class="qs-maintext"
1924 >
1925 <tspan class="qs-mathtext">Y</tspan>
1926 </text>
1927 </g>
1928 </g>
1929 </g>
1930 </a>
1931 <a href="#" class="qs-circuit-source-link">
1932 <title>intersecting-wires.qs:42:5 Y(q);</title>
1933 <g
1934 class="gate"
1935 data-location="0,0-1,3-0,0-1,0"
1936 data-zoom-out="true"
1937 data-zoom-in="false"
1938 >
1939 <g>
1940 <g>
1941 <rect
1942 class="gate-unitary"
1943 x="268.248046875"
1944 y="560"
1945 width="40"
1946 height="40"
1947 data-wire-ys="[580]"
1948 data-width="40"
1949 />
1950 <text
1951 font-size="14"
1952 x="288.248046875"
1953 y="580"
1954 class="qs-maintext"
1955 >
1956 <tspan class="qs-mathtext">Y</tspan>
1957 </text>
1958 </g>
1959 </g>
1960 </g>
1961 </a>
1962 <a href="#" class="qs-circuit-source-link">
1963 <title>intersecting-wires.qs:37:5 MResetZ(q);</title>
1964 <g
1965 class="gate"
1966 data-location="0,0-1,2-1,0"
1967 data-zoom-out="true"
1968 data-zoom-in="false"
1969 >
1970 <g>
1971 <rect
1972 class="gate-measure"
1973 x="328.248046875"
1974 y="440"
1975 width="40"
1976 height="40"
1977 data-wire-ys="[460]"
1978 data-width="40"
1979 />
1980 <path
1981 class="arc-measure"
1982 d="M 363.248046875 462 A 15 12 0 0 0 333.248046875 462"
1983 style="pointer-events: none"
1984 />
1985 <line
1986 x1="348.248046875"
1987 x2="360.248046875"
1988 y1="468"
1989 y2="448"
1990 class="qs-line-measure"
1991 style="pointer-events: none"
1992 />
1993 </g>
1994 </g>
1995 </a>
1996 <a href="#" class="qs-circuit-source-link">
1997 <title>intersecting-wires.qs:37:5 MResetZ(q);</title>
1998 <g
1999 class="gate"
2000 data-location="0,0-1,3-1,0"
2001 data-zoom-out="true"
2002 data-zoom-in="false"
2003 >
2004 <g>
2005 <rect
2006 class="gate-measure"
2007 x="328.248046875"
2008 y="560"
2009 width="40"
2010 height="40"
2011 data-wire-ys="[580]"
2012 data-width="40"
2013 />
2014 <path
2015 class="arc-measure"
2016 d="M 363.248046875 582 A 15 12 0 0 0 333.248046875 582"
2017 style="pointer-events: none"
2018 />
2019 <line
2020 x1="348.248046875"
2021 x2="360.248046875"
2022 y1="588"
2023 y2="568"
2024 class="qs-line-measure"
2025 style="pointer-events: none"
2026 />
2027 </g>
2028 </g>
2029 </a>
2030 <a href="#" class="qs-circuit-source-link">
2031 <title>intersecting-wires.qs:37:5 MResetZ(q);</title>
2032 <g
2033 class="gate"
2034 data-location="0,0-1,2-2,0"
2035 data-zoom-out="true"
2036 data-zoom-in="false"
2037 >
2038 <g>
2039 <g>
2040 <rect
2041 class="gate-ket"
2042 x="388.248046875"
2043 y="440"
2044 width="40"
2045 height="40"
2046 data-wire-ys="[460]"
2047 data-width="40"
2048 />
2049 <text
2050 font-size="14"
2051 x="408.248046875"
2052 y="460"
2053 class="qs-maintext ket-text"
2054 >
2055 |0⟩
2056 </text>
2057 </g>
2058 </g>
2059 </g>
2060 </a>
2061 <a href="#" class="qs-circuit-source-link">
2062 <title>intersecting-wires.qs:37:5 MResetZ(q);</title>
2063 <g
2064 class="gate"
2065 data-location="0,0-1,3-2,0"
2066 data-zoom-out="true"
2067 data-zoom-in="false"
2068 >
2069 <g>
2070 <g>
2071 <rect
2072 class="gate-ket"
2073 x="388.248046875"
2074 y="560"
2075 width="40"
2076 height="40"
2077 data-wire-ys="[580]"
2078 data-width="40"
2079 />
2080 <text
2081 font-size="14"
2082 x="408.248046875"
2083 y="580"
2084 class="qs-maintext ket-text"
2085 >
2086 |0⟩
2087 </text>
2088 </g>
2089 </g>
2090 </g>
2091 </a>
2092 <a href="#" class="qs-circuit-source-link">
2093 <title>intersecting-wires.qs:9:5 Foo([qs[2], qs[0]]);</title>
2094 <g
2095 class="gate"
2096 data-location="0,0-2,0"
2097 data-zoom-out="true"
2098 data-zoom-in="false"
2099 >
2100 <g>
2101 <line
2102 x1="470.31005859375"
2103 x2="470.31005859375"
2104 y1="40"
2105 y2="180"
2106 stroke-dasharray="8, 8"
2107 />
2108 <g>
2109 <rect
2110 class="gate-unitary"
2111 x="448.248046875"
2112 y="20"
2113 width="44.1240234375"
2114 height="40"
2115 data-wire-ys="[40]"
2116 data-width="44.1240234375"
2117 />
2118 <text
2119 font-size="14"
2120 x="470.31005859375"
2121 y="40"
2122 class="qs-maintext"
2123 >
2124 <tspan class="qs-mathtext">Foo</tspan>
2125 </text>
2126 </g>
2127 <g>
2128 <rect
2129 class="gate-unitary"
2130 x="448.248046875"
2131 y="160"
2132 width="44.1240234375"
2133 height="40"
2134 data-wire-ys="[180]"
2135 data-width="44.1240234375"
2136 />
2137 <text
2138 font-size="14"
2139 x="470.31005859375"
2140 y="180"
2141 class="qs-maintext"
2142 >
2143 <tspan class="qs-mathtext">Foo</tspan>
2144 </text>
2145 </g>
2146 </g>
2147 </g>
2148 </a>
2149 <a href="#" class="qs-circuit-source-link">
2150 <title>intersecting-wires.qs:41:5 X(q);</title>
2151 <g
2152 class="gate"
2153 data-location="0,0-2,1-0,0"
2154 data-zoom-out="true"
2155 data-zoom-in="false"
2156 >
2157 <g class="oplus" data-wire-ys="[460]" data-width="30">
2158 <circle cx="470.31005859375" cy="460" r="15" />
2159 <line
2160 x1="470.31005859375"
2161 x2="470.31005859375"
2162 y1="445"
2163 y2="475"
2164 />
2165 <line
2166 x1="455.31005859375"
2167 x2="485.31005859375"
2168 y1="460"
2169 y2="460"
2170 />
2171 </g>
2172 </g>
2173 </a>
2174 <a href="#" class="qs-circuit-source-link">
2175 <title>intersecting-wires.qs:41:5 X(q);</title>
2176 <g
2177 class="gate"
2178 data-location="0,0-2,2-0,0"
2179 data-zoom-out="true"
2180 data-zoom-in="false"
2181 >
2182 <g class="oplus" data-wire-ys="[580]" data-width="30">
2183 <circle cx="470.31005859375" cy="580" r="15" />
2184 <line
2185 x1="470.31005859375"
2186 x2="470.31005859375"
2187 y1="565"
2188 y2="595"
2189 />
2190 <line
2191 x1="455.31005859375"
2192 x2="485.31005859375"
2193 y1="580"
2194 y2="580"
2195 />
2196 </g>
2197 </g>
2198 </a>
2199 <a href="#" class="qs-circuit-source-link">
2200 <title>intersecting-wires.qs:42:5 Y(q);</title>
2201 <g
2202 class="gate"
2203 data-location="0,0-2,1-1,0"
2204 data-zoom-out="true"
2205 data-zoom-in="false"
2206 >
2207 <g>
2208 <g>
2209 <rect
2210 class="gate-unitary"
2211 x="512.3720703125"
2212 y="440"
2213 width="40"
2214 height="40"
2215 data-wire-ys="[460]"
2216 data-width="40"
2217 />
2218 <text
2219 font-size="14"
2220 x="532.3720703125"
2221 y="460"
2222 class="qs-maintext"
2223 >
2224 <tspan class="qs-mathtext">Y</tspan>
2225 </text>
2226 </g>
2227 </g>
2228 </g>
2229 </a>
2230 <a href="#" class="qs-circuit-source-link">
2231 <title>intersecting-wires.qs:42:5 Y(q);</title>
2232 <g
2233 class="gate"
2234 data-location="0,0-2,2-1,0"
2235 data-zoom-out="true"
2236 data-zoom-in="false"
2237 >
2238 <g>
2239 <g>
2240 <rect
2241 class="gate-unitary"
2242 x="512.3720703125"
2243 y="560"
2244 width="40"
2245 height="40"
2246 data-wire-ys="[580]"
2247 data-width="40"
2248 />
2249 <text
2250 font-size="14"
2251 x="532.3720703125"
2252 y="580"
2253 class="qs-maintext"
2254 >
2255 <tspan class="qs-mathtext">Y</tspan>
2256 </text>
2257 </g>
2258 </g>
2259 </g>
2260 </a>
2261 <a href="#" class="qs-circuit-source-link">
2262 <title>intersecting-wires.qs:13:5 Foo(qs[0..2]);</title>
2263 <g
2264 class="gate"
2265 data-location="0,0-3,0"
2266 data-zoom-out="true"
2267 data-zoom-in="false"
2268 >
2269 <g>
2270 <line
2271 x1="594.43408203125"
2272 x2="594.43408203125"
2273 y1="40"
2274 y2="180"
2275 stroke-dasharray="8, 8"
2276 />
2277 <g>
2278 <rect
2279 class="gate-unitary"
2280 x="572.3720703125"
2281 y="20"
2282 width="44.1240234375"
2283 height="40"
2284 data-wire-ys="[40]"
2285 data-width="44.1240234375"
2286 />
2287 <text
2288 font-size="14"
2289 x="594.43408203125"
2290 y="40"
2291 class="qs-maintext"
2292 >
2293 <tspan class="qs-mathtext">Foo</tspan>
2294 </text>
2295 </g>
2296 <g>
2297 <rect
2298 class="gate-unitary"
2299 x="572.3720703125"
2300 y="100"
2301 width="44.1240234375"
2302 height="100"
2303 data-wire-ys="[120,180]"
2304 data-width="44.1240234375"
2305 />
2306 <text
2307 font-size="14"
2308 x="594.43408203125"
2309 y="150"
2310 class="qs-maintext"
2311 >
2312 <tspan class="qs-mathtext">Foo</tspan>
2313 </text>
2314 </g>
2315 </g>
2316 </g>
2317 </a>
2318 <a href="#" class="qs-circuit-source-link">
2319 <title>intersecting-wires.qs:41:5 X(q);</title>
2320 <g
2321 class="gate"
2322 data-location="0,0-3,1-0,0-0,0"
2323 data-zoom-out="true"
2324 data-zoom-in="false"
2325 >
2326 <g class="oplus" data-wire-ys="[460]" data-width="30">
2327 <circle cx="594.43408203125" cy="460" r="15" />
2328 <line
2329 x1="594.43408203125"
2330 x2="594.43408203125"
2331 y1="445"
2332 y2="475"
2333 />
2334 <line
2335 x1="579.43408203125"
2336 x2="609.43408203125"
2337 y1="460"
2338 y2="460"
2339 />
2340 </g>
2341 </g>
2342 </a>
2343 <a href="#" class="qs-circuit-source-link">
2344 <title>intersecting-wires.qs:41:5 X(q);</title>
2345 <g
2346 class="gate"
2347 data-location="0,0-3,2-0,0-0,0"
2348 data-zoom-out="true"
2349 data-zoom-in="false"
2350 >
2351 <g class="oplus" data-wire-ys="[580]" data-width="30">
2352 <circle cx="594.43408203125" cy="580" r="15" />
2353 <line
2354 x1="594.43408203125"
2355 x2="594.43408203125"
2356 y1="565"
2357 y2="595"
2358 />
2359 <line
2360 x1="579.43408203125"
2361 x2="609.43408203125"
2362 y1="580"
2363 y2="580"
2364 />
2365 </g>
2366 </g>
2367 </a>
2368 <a href="#" class="qs-circuit-source-link">
2369 <title>intersecting-wires.qs:42:5 Y(q);</title>
2370 <g
2371 class="gate"
2372 data-location="0,0-3,1-0,0-1,0"
2373 data-zoom-out="true"
2374 data-zoom-in="false"
2375 >
2376 <g>
2377 <g>
2378 <rect
2379 class="gate-unitary"
2380 x="636.49609375"
2381 y="440"
2382 width="40"
2383 height="40"
2384 data-wire-ys="[460]"
2385 data-width="40"
2386 />
2387 <text
2388 font-size="14"
2389 x="656.49609375"
2390 y="460"
2391 class="qs-maintext"
2392 >
2393 <tspan class="qs-mathtext">Y</tspan>
2394 </text>
2395 </g>
2396 </g>
2397 </g>
2398 </a>
2399 <a href="#" class="qs-circuit-source-link">
2400 <title>intersecting-wires.qs:42:5 Y(q);</title>
2401 <g
2402 class="gate"
2403 data-location="0,0-3,2-0,0-1,0"
2404 data-zoom-out="true"
2405 data-zoom-in="false"
2406 >
2407 <g>
2408 <g>
2409 <rect
2410 class="gate-unitary"
2411 x="636.49609375"
2412 y="560"
2413 width="40"
2414 height="40"
2415 data-wire-ys="[580]"
2416 data-width="40"
2417 />
2418 <text
2419 font-size="14"
2420 x="656.49609375"
2421 y="580"
2422 class="qs-maintext"
2423 >
2424 <tspan class="qs-mathtext">Y</tspan>
2425 </text>
2426 </g>
2427 </g>
2428 </g>
2429 </a>
2430 <a href="#" class="qs-circuit-source-link">
2431 <title>intersecting-wires.qs:37:5 MResetZ(q);</title>
2432 <g
2433 class="gate"
2434 data-location="0,0-3,1-1,0"
2435 data-zoom-out="true"
2436 data-zoom-in="false"
2437 >
2438 <g>
2439 <rect
2440 class="gate-measure"
2441 x="696.49609375"
2442 y="440"
2443 width="40"
2444 height="40"
2445 data-wire-ys="[460]"
2446 data-width="40"
2447 />
2448 <path
2449 class="arc-measure"
2450 d="M 731.49609375 462 A 15 12 0 0 0 701.49609375 462"
2451 style="pointer-events: none"
2452 />
2453 <line
2454 x1="716.49609375"
2455 x2="728.49609375"
2456 y1="468"
2457 y2="448"
2458 class="qs-line-measure"
2459 style="pointer-events: none"
2460 />
2461 </g>
2462 </g>
2463 </a>
2464 <a href="#" class="qs-circuit-source-link">
2465 <title>intersecting-wires.qs:37:5 MResetZ(q);</title>
2466 <g
2467 class="gate"
2468 data-location="0,0-3,2-1,0"
2469 data-zoom-out="true"
2470 data-zoom-in="false"
2471 >
2472 <g>
2473 <rect
2474 class="gate-measure"
2475 x="696.49609375"
2476 y="560"
2477 width="40"
2478 height="40"
2479 data-wire-ys="[580]"
2480 data-width="40"
2481 />
2482 <path
2483 class="arc-measure"
2484 d="M 731.49609375 582 A 15 12 0 0 0 701.49609375 582"
2485 style="pointer-events: none"
2486 />
2487 <line
2488 x1="716.49609375"
2489 x2="728.49609375"
2490 y1="588"
2491 y2="568"
2492 class="qs-line-measure"
2493 style="pointer-events: none"
2494 />
2495 </g>
2496 </g>
2497 </a>
2498 <a href="#" class="qs-circuit-source-link">
2499 <title>intersecting-wires.qs:37:5 MResetZ(q);</title>
2500 <g
2501 class="gate"
2502 data-location="0,0-3,1-2,0"
2503 data-zoom-out="true"
2504 data-zoom-in="false"
2505 >
2506 <g>
2507 <g>
2508 <rect
2509 class="gate-ket"
2510 x="756.49609375"
2511 y="440"
2512 width="40"
2513 height="40"
2514 data-wire-ys="[460]"
2515 data-width="40"
2516 />
2517 <text
2518 font-size="14"
2519 x="776.49609375"
2520 y="460"
2521 class="qs-maintext ket-text"
2522 >
2523 |0⟩
2524 </text>
2525 </g>
2526 </g>
2527 </g>
2528 </a>
2529 <a href="#" class="qs-circuit-source-link">
2530 <title>intersecting-wires.qs:37:5 MResetZ(q);</title>
2531 <g
2532 class="gate"
2533 data-location="0,0-3,2-2,0"
2534 data-zoom-out="true"
2535 data-zoom-in="false"
2536 >
2537 <g>
2538 <g>
2539 <rect
2540 class="gate-ket"
2541 x="756.49609375"
2542 y="560"
2543 width="40"
2544 height="40"
2545 data-wire-ys="[580]"
2546 data-width="40"
2547 />
2548 <text
2549 font-size="14"
2550 x="776.49609375"
2551 y="580"
2552 class="qs-maintext ket-text"
2553 >
2554 |0⟩
2555 </text>
2556 </g>
2557 </g>
2558 </g>
2559 </a>
2560 <a href="#" class="qs-circuit-source-link">
2561 <title>intersecting-wires.qs:16:5 M(qs[2]);</title>
2562 <g
2563 class="gate"
2564 data-location="0,0-4,0"
2565 data-zoom-out="true"
2566 data-zoom-in="false"
2567 >
2568 <g>
2569 <rect
2570 class="gate-measure"
2571 x="816.49609375"
2572 y="160"
2573 width="40"
2574 height="40"
2575 data-wire-ys="[180]"
2576 data-width="40"
2577 />
2578 <path
2579 class="arc-measure"
2580 d="M 851.49609375 182 A 15 12 0 0 0 821.49609375 182"
2581 style="pointer-events: none"
2582 />
2583 <line
2584 x1="836.49609375"
2585 x2="848.49609375"
2586 y1="188"
2587 y2="168"
2588 class="qs-line-measure"
2589 style="pointer-events: none"
2590 />
2591 </g>
2592 </g>
2593 </a>
2594 <a href="#" class="qs-circuit-source-link">
2595 <title>intersecting-wires.qs:17:5 M(qs[2]);</title>
2596 <g
2597 class="gate"
2598 data-location="0,0-5,0"
2599 data-zoom-out="true"
2600 data-zoom-in="false"
2601 >
2602 <g>
2603 <rect
2604 class="gate-measure"
2605 x="876.49609375"
2606 y="160"
2607 width="40"
2608 height="40"
2609 data-wire-ys="[180]"
2610 data-width="40"
2611 />
2612 <path
2613 class="arc-measure"
2614 d="M 911.49609375 182 A 15 12 0 0 0 881.49609375 182"
2615 style="pointer-events: none"
2616 />
2617 <line
2618 x1="896.49609375"
2619 x2="908.49609375"
2620 y1="188"
2621 y2="168"
2622 class="qs-line-measure"
2623 style="pointer-events: none"
2624 />
2625 </g>
2626 </g>
2627 </a>
2628 <a href="#" class="qs-circuit-source-link">
2629 <title>intersecting-wires.qs:46:5 M(qs[2]);</title>
2630 <g
2631 class="gate"
2632 data-location="0,0-6,0-0,0"
2633 data-zoom-out="true"
2634 data-zoom-in="false"
2635 >
2636 <g>
2637 <rect
2638 class="gate-measure"
2639 x="936.49609375"
2640 y="160"
2641 width="40"
2642 height="40"
2643 data-wire-ys="[180]"
2644 data-width="40"
2645 />
2646 <path
2647 class="arc-measure"
2648 d="M 971.49609375 182 A 15 12 0 0 0 941.49609375 182"
2649 style="pointer-events: none"
2650 />
2651 <line
2652 x1="956.49609375"
2653 x2="968.49609375"
2654 y1="188"
2655 y2="168"
2656 class="qs-line-measure"
2657 style="pointer-events: none"
2658 />
2659 </g>
2660 </g>
2661 </a>
2662 <a href="#" class="qs-circuit-source-link">
2663 <title>intersecting-wires.qs:47:5 Foo(qs);</title>
2664 <g
2665 class="gate"
2666 data-location="0,0-6,0-1,0"
2667 data-zoom-out="true"
2668 data-zoom-in="false"
2669 >
2670 <g>
2671 <line
2672 x1="1018.55810546875"
2673 x2="1018.55810546875"
2674 y1="40"
2675 y2="400"
2676 stroke-dasharray="8, 8"
2677 />
2678 <g>
2679 <rect
2680 class="gate-unitary"
2681 x="996.49609375"
2682 y="20"
2683 width="44.1240234375"
2684 height="40"
2685 data-wire-ys="[40]"
2686 data-width="44.1240234375"
2687 />
2688 <text
2689 font-size="14"
2690 x="1018.55810546875"
2691 y="40"
2692 class="qs-maintext"
2693 >
2694 <tspan class="qs-mathtext">Foo</tspan>
2695 </text>
2696 </g>
2697 <g>
2698 <rect
2699 class="gate-unitary"
2700 x="996.49609375"
2701 y="100"
2702 width="44.1240234375"
2703 height="100"
2704 data-wire-ys="[120,180]"
2705 data-width="44.1240234375"
2706 />
2707 <text
2708 font-size="14"
2709 x="1018.55810546875"
2710 y="150"
2711 class="qs-maintext"
2712 >
2713 <tspan class="qs-mathtext">Foo</tspan>
2714 </text>
2715 </g>
2716 <g>
2717 <rect
2718 class="gate-unitary"
2719 x="996.49609375"
2720 y="320"
2721 width="44.1240234375"
2722 height="100"
2723 data-wire-ys="[340,400]"
2724 data-width="44.1240234375"
2725 />
2726 <text
2727 font-size="14"
2728 x="1018.55810546875"
2729 y="370"
2730 class="qs-maintext"
2731 >
2732 <tspan class="qs-mathtext">Foo</tspan>
2733 </text>
2734 </g>
2735 </g>
2736 </g>
2737 </a>
2738 </g>
2739 </svg>
2740 </div>
2741 </body>
2742</html>
2743