-
Notifications
You must be signed in to change notification settings - Fork 0
/
PhysRevA.103.062608.nb
1019 lines (995 loc) · 38.3 KB
/
PhysRevA.103.062608.nb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 39063, 1011]
NotebookOptionsPosition[ 37320, 974]
NotebookOutlinePosition[ 37711, 990]
CellTagsIndexPosition[ 37668, 987]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[TextData[StyleBox["Simulating nonnative cubic interactions on noisy \
quantum machines", "Title",
FontWeight->"Regular",
FontColor->RGBColor[
0.2964217593652247, 0.6292210269321736, 0.2727702754253452]]], "Text",
CellChangeTimes->{{3.822636147120782*^9, 3.822636149053595*^9}, {
3.822636240732341*^9, 3.82263625191656*^9}, {3.822637212068983*^9,
3.822637212721833*^9},
3.822770593869432*^9},ExpressionUUID->"933d59a2-8561-489d-94ef-\
c1c2f8ed83d0"],
Cell[TextData[StyleBox[ButtonBox["arXiv:2004.06885",
BaseStyle->"Hyperlink",
ButtonData->{
URL["https://arxiv.org/abs/2004.06885"], None},
ButtonNote->"https://arxiv.org/abs/2004.06885"], "Section",
FontSize->24,
FontVariations->{"Underline"->True},
FontColor->GrayLevel[0]]], "Text",
CellChangeTimes->{{3.8226362283387003`*^9, 3.822636334723393*^9}, {
3.822637289419742*^9, 3.82263728942037*^9}, 3.822770598930826*^9, {
3.822770643828999*^9, 3.822770657888399*^9}},
FontSize->14,ExpressionUUID->"9d2a057e-a21f-48ee-b416-b0a9d35983f2"],
Cell[TextData[{
StyleBox["Notebook: \[CapitalOAcute]scar Amaro, February 2021 @", "Section",
FontSize->24,
FontColor->GrayLevel[0]],
StyleBox[ButtonBox[" ",
BaseStyle->"Hyperlink",
ButtonData->{
URL["http://epp.ist.utl.pt/"], None},
ButtonNote->"http://epp.ist.utl.pt/"], "Section",
FontSize->24,
FontColor->GrayLevel[0]],
StyleBox[ButtonBox["GoLP-EPP",
BaseStyle->"Hyperlink",
ButtonData->{
URL["http://epp.ist.utl.pt/"], None},
ButtonNote->"http://epp.ist.utl.pt/"], "Section",
FontSize->24,
FontVariations->{"Underline"->True},
FontColor->GrayLevel[0]],
StyleBox["\nContact: oscar.amaro@tecnico.ulisboa.pt", "Section",
FontSize->24,
FontColor->GrayLevel[0]]
}], "Text",
CellChangeTimes->{{3.8226362283387003`*^9, 3.822636334723393*^9},
3.822636391632341*^9, {3.8226372468331547`*^9, 3.822637246833611*^9}},
FontSize->14,ExpressionUUID->"197f5913-2ab4-44b9-8daf-544322fa707c"],
Cell[TextData[{
StyleBox["Introduction", "Section",
FontSize->24,
FontWeight->"Bold",
FontColor->GrayLevel[0]],
StyleBox["\nIn this notebook we reproduce figure 2 from the paper.",
"Section",
FontSize->24,
FontColor->GrayLevel[0]]
}], "Text",
CellChangeTimes->{{3.8226362283387003`*^9, 3.822636334723393*^9}, {
3.822636391632341*^9, 3.8226364148286*^9}, {3.822636632459257*^9,
3.82263666754714*^9}, {3.8226367225529222`*^9, 3.822636739164402*^9}, {
3.82277075923588*^9, 3.82277077440228*^9}},
FontSize->14,ExpressionUUID->"03fd6209-75a3-497f-a959-c5366de05c5e"],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{"(*", " ",
RowBox[{"clear", " ", "variables"}], " ", "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Clear", "[",
RowBox[{
"h", ",", "s", ",", "\[Lambda]", ",", "\[Theta]", ",", "\[Tau]", ",", "U",
",", "psi", ",", "psi0"}], "]"}], "\[IndentingNewLine]",
"\[IndentingNewLine]",
RowBox[{"(*", " ",
RowBox[{"Hamiltonian", " ", "from", " ", "equation", " ", "11"}], " ",
"*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"h", "=",
RowBox[{"{",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",",
RowBox[{
RowBox[{"Exp", "[",
RowBox[{"I", " ", "\[Theta]"}], "]"}],
RowBox[{"Sqrt", "[",
RowBox[{"2", " ",
RowBox[{"(",
RowBox[{"s", "-", "1"}], ")"}]}], "]"}]}], ",", "0"}], "}"}],
",",
RowBox[{"{",
RowBox[{
RowBox[{
RowBox[{"Exp", "[",
RowBox[{
RowBox[{"-", "I"}], " ", "\[Theta]"}], "]"}],
RowBox[{"Sqrt", "[",
RowBox[{"2", " ",
RowBox[{"(",
RowBox[{"s", "-", "1"}], ")"}]}], "]"}]}], ",", "0", ",",
RowBox[{
RowBox[{"Exp", "[",
RowBox[{"I", " ", "\[Theta]"}], "]"}],
RowBox[{"Sqrt", "[",
RowBox[{"2", " ", "s"}], "]"}]}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",",
RowBox[{
RowBox[{"Exp", "[",
RowBox[{
RowBox[{"-", "I"}], " ", "\[Theta]"}], "]"}],
RowBox[{"Sqrt", "[",
RowBox[{"2", " ", "s"}], "]"}]}], ",", "0"}], "}"}]}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{"Print", "[",
RowBox[{"\"\<h=\>\"", ",",
RowBox[{"h", "//", "MatrixForm"}]}], "]"}], "\[IndentingNewLine]",
"\[IndentingNewLine]",
RowBox[{"(*", " ",
RowBox[{"exponentiate", " ", "Hamiltonian"}], " ", "*)"}],
"\[IndentingNewLine]",
RowBox[{
RowBox[{"exph", "=",
RowBox[{
RowBox[{"MatrixExp", "[",
RowBox[{
RowBox[{"-", " ", "I"}], " ", "h", " ", "\[Tau]"}], "]"}], "//",
"FullSimplify"}]}], ";"}], "\[IndentingNewLine]", "\[IndentingNewLine]",
RowBox[{"(*", " ",
RowBox[{"embed", " ", "U", " ", "in", " ", "4", "x4", " ", "matrix"}],
" ", "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"U", "=",
RowBox[{"IdentityMatrix", "[", "4", "]"}]}], ";"}],
"\[IndentingNewLine]",
RowBox[{"For", "[",
RowBox[{
RowBox[{"i", "=", "1"}], ",",
RowBox[{"i", "<", "4"}], ",",
RowBox[{"i", "++"}], ",", "\[IndentingNewLine]",
RowBox[{"For", "[",
RowBox[{
RowBox[{"j", "=", "1"}], ",",
RowBox[{"j", "<", "4"}], ",",
RowBox[{"j", "++"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"U", "[",
RowBox[{"[",
RowBox[{"i", ",", "j"}], "]"}], "]"}], "=",
RowBox[{"exph", "[",
RowBox[{"[",
RowBox[{"i", ",", "j"}], "]"}], "]"}]}], ";"}]}],
"\[IndentingNewLine]", "]"}]}], "\[IndentingNewLine]", "]"}],
"\[IndentingNewLine]",
RowBox[{"Print", "[",
RowBox[{
"\"\<U = \!\(\*SuperscriptBox[\(e\), \(\(-I\)\\\ h\\\ \[Tau]\)]\) =\>\"",
",",
RowBox[{"U", "//", "MatrixForm"}]}], "]"}]}]}]], "Input",
CellChangeTimes->{{3.815117791605915*^9, 3.81511784844333*^9}, {
3.822769649096569*^9, 3.82276967047724*^9}, {3.822769724806313*^9,
3.8227697460208883`*^9}, {3.822770160360958*^9, 3.822770270198331*^9}, {
3.822770377995819*^9, 3.822770385841155*^9}, {3.8227705437296867`*^9,
3.8227705553764553`*^9}, {3.822770704625545*^9, 3.822770749398532*^9},
3.822770784614661*^9, {3.822770977865638*^9, 3.8227709902545643`*^9}, {
3.8230078902942953`*^9, 3.823007899273624*^9}, {3.823008927417832*^9,
3.823008969233532*^9}, {3.823009059792817*^9, 3.8230091151858463`*^9}, {
3.823014872316019*^9, 3.823014888824267*^9}, {3.823916541750297*^9,
3.823916597565105*^9}, {3.82391747771941*^9, 3.823917478015649*^9}, {
3.8239177025250177`*^9, 3.8239178145487013`*^9}},
CellLabel->"In[93]:=",ExpressionUUID->"e3177bae-70b4-4bb4-921b-d9ec9ebcfaaf"],
Cell[CellGroupData[{
Cell[BoxData[
InterpretationBox[
RowBox[{"\<\"h=\"\>", "\[InvisibleSpace]",
TagBox[
RowBox[{"(", "\[NoBreak]", GridBox[{
{"0",
RowBox[{
SqrtBox["2"], " ",
SuperscriptBox["\[ExponentialE]",
RowBox[{"\[ImaginaryI]", " ", "\[Theta]"}]], " ",
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+", "s"}]]}], "0"},
{
RowBox[{
SqrtBox["2"], " ",
SuperscriptBox["\[ExponentialE]",
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], " ", "\[Theta]"}]], " ",
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+", "s"}]]}], "0",
RowBox[{
SqrtBox["2"], " ",
SuperscriptBox["\[ExponentialE]",
RowBox[{"\[ImaginaryI]", " ", "\[Theta]"}]], " ",
SqrtBox["s"]}]},
{"0",
RowBox[{
SqrtBox["2"], " ",
SuperscriptBox["\[ExponentialE]",
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], " ", "\[Theta]"}]], " ",
SqrtBox["s"]}], "0"}
},
GridBoxAlignment->{"Columns" -> {{Center}}, "Rows" -> {{Baseline}}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[0.7]},
Offset[0.27999999999999997`]}, "Rows" -> {
Offset[0.2], {
Offset[0.4]},
Offset[0.2]}}], "\[NoBreak]", ")"}],
Function[BoxForm`e$,
MatrixForm[BoxForm`e$]]]}],
SequenceForm["h=",
MatrixForm[{{
0, 2^Rational[1, 2]
E^(Complex[0, 1] $CellContext`\[Theta]) (-1 + $CellContext`s)^
Rational[1, 2], 0}, {
2^Rational[1, 2]
E^(Complex[0, -1] $CellContext`\[Theta]) (-1 + $CellContext`s)^
Rational[1, 2], 0, 2^Rational[1, 2]
E^(Complex[0, 1] $CellContext`\[Theta]) $CellContext`s^
Rational[1, 2]}, {
0, 2^Rational[1, 2]
E^(Complex[0, -1] $CellContext`\[Theta]) $CellContext`s^Rational[1, 2],
0}}]],
Editable->False]], "Print",
CellChangeTimes->{{3.8230090751590033`*^9, 3.823009115641863*^9},
3.8230133494247828`*^9, {3.823014874168939*^9, 3.8230148955106897`*^9},
3.823916405221122*^9, {3.823916544920104*^9, 3.823916597992239*^9},
3.823917478392309*^9, {3.82391770316286*^9, 3.823917717381524*^9}, {
3.8239177549553013`*^9, 3.8239178148810368`*^9}, 3.825482759244185*^9,
3.832821725066025*^9},
CellLabel->
"During evaluation of \
In[93]:=",ExpressionUUID->"27d1e445-df54-4566-9b1c-fa9c565a6737"],
Cell[BoxData[
InterpretationBox[
RowBox[{"\<\"U = \\!\\(\\*SuperscriptBox[\\(e\\), \\(\\(-I\\)\\\\ h\\\\ \
\[Tau]\\)]\\) =\"\>", "\[InvisibleSpace]",
TagBox[
RowBox[{"(", "\[NoBreak]", GridBox[{
{
FractionBox[
RowBox[{"s", "+",
RowBox[{
RowBox[{"(",
RowBox[{
RowBox[{"-", "1"}], "+", "s"}], ")"}], " ",
RowBox[{"Cos", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "2"}], "+",
RowBox[{"4", " ", "s"}]}]], " ", "\[Tau]"}], "]"}]}]}],
RowBox[{
RowBox[{"-", "1"}], "+",
RowBox[{"2", " ", "s"}]}]],
FractionBox[
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+", "s"}]], " ",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], " ",
RowBox[{"Cos", "[", "\[Theta]", "]"}]}], "+",
RowBox[{"Sin", "[", "\[Theta]", "]"}]}], ")"}], " ",
RowBox[{"Sin", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "2"}], "+",
RowBox[{"4", " ", "s"}]}]], " ", "\[Tau]"}], "]"}]}],
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+",
RowBox[{"2", " ", "s"}]}]]],
RowBox[{"-",
FractionBox[
RowBox[{"2", " ",
SuperscriptBox["\[ExponentialE]",
RowBox[{"2", " ", "\[ImaginaryI]", " ", "\[Theta]"}]], " ",
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+", "s"}]], " ",
SqrtBox["s"], " ",
SuperscriptBox[
RowBox[{"Sin", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-",
FractionBox["1", "2"]}], "+", "s"}]], " ", "\[Tau]"}], "]"}],
"2"]}],
RowBox[{
RowBox[{"-", "1"}], "+",
RowBox[{"2", " ", "s"}]}]]}], "0"},
{
FractionBox[
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+", "s"}]], " ",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], " ",
RowBox[{"Cos", "[", "\[Theta]", "]"}]}], "-",
RowBox[{"Sin", "[", "\[Theta]", "]"}]}], ")"}], " ",
RowBox[{"Sin", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "2"}], "+",
RowBox[{"4", " ", "s"}]}]], " ", "\[Tau]"}], "]"}]}],
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+",
RowBox[{"2", " ", "s"}]}]]],
RowBox[{"Cos", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "2"}], "+",
RowBox[{"4", " ", "s"}]}]], " ", "\[Tau]"}], "]"}],
FractionBox[
RowBox[{
SqrtBox["s"], " ",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], " ",
RowBox[{"Cos", "[", "\[Theta]", "]"}]}], "+",
RowBox[{"Sin", "[", "\[Theta]", "]"}]}], ")"}], " ",
RowBox[{"Sin", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "2"}], "+",
RowBox[{"4", " ", "s"}]}]], " ", "\[Tau]"}], "]"}]}],
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+",
RowBox[{"2", " ", "s"}]}]]], "0"},
{
RowBox[{"-",
FractionBox[
RowBox[{"2", " ",
SuperscriptBox["\[ExponentialE]",
RowBox[{
RowBox[{"-", "2"}], " ", "\[ImaginaryI]", " ", "\[Theta]"}]],
" ",
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+", "s"}]], " ",
SqrtBox["s"], " ",
SuperscriptBox[
RowBox[{"Sin", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-",
FractionBox["1", "2"]}], "+", "s"}]], " ", "\[Tau]"}], "]"}],
"2"]}],
RowBox[{
RowBox[{"-", "1"}], "+",
RowBox[{"2", " ", "s"}]}]]}],
FractionBox[
RowBox[{
SqrtBox["s"], " ",
RowBox[{"(",
RowBox[{
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], " ",
RowBox[{"Cos", "[", "\[Theta]", "]"}]}], "-",
RowBox[{"Sin", "[", "\[Theta]", "]"}]}], ")"}], " ",
RowBox[{"Sin", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "2"}], "+",
RowBox[{"4", " ", "s"}]}]], " ", "\[Tau]"}], "]"}]}],
SqrtBox[
RowBox[{
RowBox[{"-", "1"}], "+",
RowBox[{"2", " ", "s"}]}]]],
FractionBox[
RowBox[{
RowBox[{"-", "1"}], "+", "s", "+",
RowBox[{"s", " ",
RowBox[{"Cos", "[",
RowBox[{
SqrtBox[
RowBox[{
RowBox[{"-", "2"}], "+",
RowBox[{"4", " ", "s"}]}]], " ", "\[Tau]"}], "]"}]}]}],
RowBox[{
RowBox[{"-", "1"}], "+",
RowBox[{"2", " ", "s"}]}]], "0"},
{"0", "0", "0", "1"}
},
GridBoxAlignment->{"Columns" -> {{Center}}, "Rows" -> {{Baseline}}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[0.7]},
Offset[0.27999999999999997`]}, "Rows" -> {
Offset[0.2], {
Offset[0.4]},
Offset[0.2]}}], "\[NoBreak]", ")"}],
Function[BoxForm`e$,
MatrixForm[BoxForm`e$]]]}],
SequenceForm["U = \!\(\*SuperscriptBox[\(e\), \(\(-I\)\\ h\\ \[Tau]\)]\) =",
MatrixForm[{{(-1 +
2 $CellContext`s)^(-1) ($CellContext`s + (-1 + $CellContext`s)
Cos[(-2 + 4 $CellContext`s)^
Rational[1, 2] $CellContext`\[Tau]]), (-1 + $CellContext`s)^
Rational[1, 2] (-1 + 2 $CellContext`s)^Rational[-1, 2] (
Complex[0, -1] Cos[$CellContext`\[Theta]] + Sin[$CellContext`\[Theta]])
Sin[(-2 + 4 $CellContext`s)^Rational[1, 2] $CellContext`\[Tau]], (-2)
E^(Complex[0, 2] $CellContext`\[Theta]) (-1 + $CellContext`s)^
Rational[1, 2] $CellContext`s^
Rational[1, 2] (-1 + 2 $CellContext`s)^(-1)
Sin[(Rational[-1, 2] + $CellContext`s)^
Rational[1, 2] $CellContext`\[Tau]]^2,
0}, {(-1 + $CellContext`s)^Rational[1, 2] (-1 + 2 $CellContext`s)^
Rational[-1, 2] (Complex[0, -1] Cos[$CellContext`\[Theta]] -
Sin[$CellContext`\[Theta]])
Sin[(-2 + 4 $CellContext`s)^Rational[1, 2] $CellContext`\[Tau]],
Cos[(-2 + 4 $CellContext`s)^
Rational[1, 2] $CellContext`\[Tau]], $CellContext`s^
Rational[1, 2] (-1 + 2 $CellContext`s)^Rational[-1, 2] (
Complex[0, -1] Cos[$CellContext`\[Theta]] + Sin[$CellContext`\[Theta]])
Sin[(-2 + 4 $CellContext`s)^Rational[1, 2] $CellContext`\[Tau]],
0}, {(-2)
E^(Complex[0, -2] $CellContext`\[Theta]) (-1 + $CellContext`s)^
Rational[1, 2] $CellContext`s^
Rational[1, 2] (-1 + 2 $CellContext`s)^(-1)
Sin[(Rational[-1, 2] + $CellContext`s)^
Rational[1, 2] $CellContext`\[Tau]]^2, $CellContext`s^
Rational[1, 2] (-1 + 2 $CellContext`s)^Rational[-1, 2] (
Complex[0, -1] Cos[$CellContext`\[Theta]] - Sin[$CellContext`\[Theta]])
Sin[(-2 + 4 $CellContext`s)^Rational[1, 2] $CellContext`\[Tau]], (-1 +
2 $CellContext`s)^(-1) (-1 + $CellContext`s + $CellContext`s
Cos[(-2 + 4 $CellContext`s)^Rational[1, 2] $CellContext`\[Tau]]),
0}, {0, 0, 0, 1}}]],
Editable->False]], "Print",
CellChangeTimes->{{3.8230090751590033`*^9, 3.823009115641863*^9},
3.8230133494247828`*^9, {3.823014874168939*^9, 3.8230148955106897`*^9},
3.823916405221122*^9, {3.823916544920104*^9, 3.823916597992239*^9},
3.823917478392309*^9, {3.82391770316286*^9, 3.823917717381524*^9}, {
3.8239177549553013`*^9, 3.8239178148810368`*^9}, 3.825482759244185*^9,
3.8328217273563433`*^9},
CellLabel->
"During evaluation of \
In[93]:=",ExpressionUUID->"3a742c9a-f145-466d-8b7e-4853ef887a2f"]
}, Open ]]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{"(*", " ",
RowBox[{"specific", " ", "parameters"}], " ", "*)"}],
"\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"\[Tau]", "=", "0.2"}], ";",
RowBox[{"\[Theta]", "=",
RowBox[{"\[Pi]", "/", "2"}]}], ";",
RowBox[{"s", "=", "2"}], ";"}], "\[IndentingNewLine]",
RowBox[{"Print", "[",
RowBox[{"\"\<h=\>\"", ",",
RowBox[{"h", "//", "MatrixForm"}]}], "]"}], "\[IndentingNewLine]",
RowBox[{"Print", "[",
RowBox[{"\"\<U=\>\"", ",",
RowBox[{"U", "//", "MatrixForm"}]}], "]"}], "\[IndentingNewLine]",
"\[IndentingNewLine]",
RowBox[{"(*", " ",
RowBox[{"initial", " ", "state"}], " ", "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"psi0", "=",
RowBox[{"{",
RowBox[{"1", ",", "0", ",", "0", ",", "0"}], "}"}]}], ";"}],
"\[IndentingNewLine]", "\[IndentingNewLine]",
RowBox[{"(*", " ",
RowBox[{"create", " ", "array", " ", "in", " ", "time"}], " ", "*)"}],
"\[IndentingNewLine]",
RowBox[{
RowBox[{"psi", "=",
RowBox[{"Table", "[",
RowBox[{
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "0", ",", "0"}], "}"}], ",",
RowBox[{"{",
RowBox[{"t", ",", "1", ",", "100"}], "}"}]}], "]"}]}], ";"}],
"\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"psi", "[",
RowBox[{"[", "1", "]"}], "]"}], "=", "psi0"}], ";"}],
"\[IndentingNewLine]",
RowBox[{"For", "[",
RowBox[{
RowBox[{"t", "=", "2"}], ",",
RowBox[{"t", "\[LessEqual]", "100"}], ",",
RowBox[{"t", "++"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"psi", "[",
RowBox[{"[", "t", "]"}], "]"}], "=",
RowBox[{"U", ".",
RowBox[{"psi", "[",
RowBox[{"[",
RowBox[{"t", "-", "1"}], "]"}], "]"}]}]}], ";"}]}],
"\[IndentingNewLine]", "]"}], "\[IndentingNewLine]",
"\[IndentingNewLine]",
RowBox[{"(*", " ", "plot", " ", "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"asp", "=", "5"}], ";",
RowBox[{"imgsz", "=", "600"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"plt0", "=",
RowBox[{"ListPlot", "[", " ",
RowBox[{
RowBox[{
RowBox[{"Abs", "[",
RowBox[{"psi", "[",
RowBox[{"[",
RowBox[{"All", ",", "1"}], "]"}], "]"}], "]"}], "^", "2"}], " ",
",",
RowBox[{"Joined", "\[Rule]", "True"}], ",",
RowBox[{"PlotRange", "\[Rule]",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}]}], ",",
RowBox[{"AspectRatio", "\[Rule]",
RowBox[{"1", "/", "asp"}]}], ",",
RowBox[{"Frame", "\[Rule]", "True"}], ",",
RowBox[{"FrameLabel", "\[Rule]",
RowBox[{"{",
RowBox[{
"\"\<\>\"", ",",
"\"\<|\!\(\*SubscriptBox[\(\[Alpha]\), \
\(0\)]\)\!\(\*SuperscriptBox[\(|\), \(2\)]\)\>\""}], "}"}]}], ",",
RowBox[{"ImageSize", "\[Rule]", "imgsz"}]}], "]"}]}], ";"}],
"\[IndentingNewLine]",
RowBox[{
RowBox[{"plt1", "=",
RowBox[{"ListPlot", "[", " ",
RowBox[{
RowBox[{
RowBox[{"Abs", "[",
RowBox[{"psi", "[",
RowBox[{"[",
RowBox[{"All", ",", "2"}], "]"}], "]"}], "]"}], "^", "2"}], " ",
",",
RowBox[{"Joined", "\[Rule]", "True"}], ",",
RowBox[{"PlotRange", "\[Rule]",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}]}], ",",
RowBox[{"AspectRatio", "\[Rule]",
RowBox[{"1", "/", "asp"}]}], ",",
RowBox[{"Frame", "\[Rule]", "True"}], ",",
RowBox[{"FrameLabel", "\[Rule]",
RowBox[{"{",
RowBox[{
"\"\<\>\"", ",",
"\"\<|\!\(\*SubscriptBox[\(\[Alpha]\), \
\(1\)]\)\!\(\*SuperscriptBox[\(|\), \(2\)]\)\>\""}], "}"}]}], ",",
RowBox[{"ImageSize", "\[Rule]", "imgsz"}]}], "]"}]}], ";"}],
"\[IndentingNewLine]",
RowBox[{
RowBox[{"plt2", "=",
RowBox[{"ListPlot", "[", " ",
RowBox[{
RowBox[{
RowBox[{"Abs", "[",
RowBox[{"psi", "[",
RowBox[{"[",
RowBox[{"All", ",", "3"}], "]"}], "]"}], "]"}], "^", "2"}], " ",
",",
RowBox[{"Joined", "\[Rule]", "True"}], ",",
RowBox[{"PlotRange", "\[Rule]",
RowBox[{"{",
RowBox[{"0", ",", "1"}], "}"}]}], ",",
RowBox[{"AspectRatio", "\[Rule]",
RowBox[{"1", "/", "asp"}]}], ",",
RowBox[{"Frame", "\[Rule]", "True"}], ",",
RowBox[{"FrameLabel", "\[Rule]",
RowBox[{"{",
RowBox[{
"\"\<N\>\"", ",",
"\"\<|\!\(\*SubscriptBox[\(\[Alpha]\), \
\(2\)]\)\!\(\*SuperscriptBox[\(|\), \(2\)]\)\>\""}], "}"}]}], ",",
RowBox[{"ImageSize", "\[Rule]", "imgsz"}]}], "]"}]}], ";"}],
"\[IndentingNewLine]",
RowBox[{"GraphicsColumn", "[",
RowBox[{
RowBox[{"{",
RowBox[{"plt0", ",", "plt1", ",", "plt2"}], "}"}], ",",
RowBox[{"Spacings", "\[Rule]", "0"}]}], "]"}]}]}]], "Input",
CellChangeTimes->{{3.823917779260503*^9, 3.823917779436137*^9}, {
3.823918875054422*^9, 3.823918875535948*^9}, {3.832821737083097*^9,
3.8328217447006893`*^9}},
CellLabel->
"In[124]:=",ExpressionUUID->"f6f77371-3f33-4482-95bb-cafb61b88854"],
Cell[CellGroupData[{
Cell[BoxData[
InterpretationBox[
RowBox[{"\<\"h=\"\>", "\[InvisibleSpace]",
TagBox[
RowBox[{"(", "\[NoBreak]", GridBox[{
{"0",
RowBox[{"\[ImaginaryI]", " ",
SqrtBox["2"]}], "0"},
{
RowBox[{
RowBox[{"-", "\[ImaginaryI]"}], " ",
SqrtBox["2"]}], "0",
RowBox[{"2", " ", "\[ImaginaryI]"}]},
{"0",
RowBox[{
RowBox[{"-", "2"}], " ", "\[ImaginaryI]"}], "0"}
},
GridBoxAlignment->{"Columns" -> {{Center}}, "Rows" -> {{Baseline}}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[0.7]},
Offset[0.27999999999999997`]}, "Rows" -> {
Offset[0.2], {
Offset[0.4]},
Offset[0.2]}}], "\[NoBreak]", ")"}],
Function[BoxForm`e$,
MatrixForm[BoxForm`e$]]]}],
SequenceForm["h=",
MatrixForm[{{0, Complex[0, 1] 2^Rational[1, 2], 0}, {
Complex[0, -1] 2^Rational[1, 2], 0,
Complex[0, 2]}, {0,
Complex[0, -2], 0}}]],
Editable->False]], "Print",
CellChangeTimes->{
3.8254827624435797`*^9, {3.8328217307659903`*^9, 3.8328217450919323`*^9}},
CellLabel->
"During evaluation of \
In[124]:=",ExpressionUUID->"b1624419-1572-48af-8140-a3d787fbe8f8"],
Cell[BoxData[
InterpretationBox[
RowBox[{"\<\"U=\"\>", "\[InvisibleSpace]",
TagBox[
RowBox[{"(", "\[NoBreak]", GridBox[{
{"0.9607936273555613`", "0.2716639952608249`", "0.05544618392521859`",
"0"},
{
RowBox[{"-", "0.2716639952608249`"}], "0.8823808820666842`",
"0.3841909065063188`", "0"},
{"0.05544618392521859`",
RowBox[{"-", "0.3841909065063188`"}], "0.9215872547111227`", "0"},
{"0", "0", "0", "1"}
},
GridBoxAlignment->{"Columns" -> {{Center}}, "Rows" -> {{Baseline}}},
GridBoxSpacings->{"Columns" -> {
Offset[0.27999999999999997`], {
Offset[0.7]},
Offset[0.27999999999999997`]}, "Rows" -> {
Offset[0.2], {
Offset[0.4]},
Offset[0.2]}}], "\[NoBreak]", ")"}],
Function[BoxForm`e$,
MatrixForm[BoxForm`e$]]]}],
SequenceForm["U=",
MatrixForm[{{
0.9607936273555613, 0.2716639952608249, 0.05544618392521859,
0}, {-0.2716639952608249, 0.8823808820666842, 0.3841909065063188, 0}, {
0.05544618392521859, -0.3841909065063188, 0.9215872547111227, 0}, {0, 0,
0, 1}}]],
Editable->False]], "Print",
CellChangeTimes->{
3.8254827624435797`*^9, {3.8328217307659903`*^9, 3.8328217450976753`*^9}},
CellLabel->
"During evaluation of \
In[124]:=",ExpressionUUID->"c1e7419c-0fb4-425a-8a1d-7db27c1e9e65"]
}, Open ]],
Cell[BoxData[
GraphicsBox[{{}, {InsetBox[
GraphicsBox[{{}, {{}, {},
{RGBColor[0.368417, 0.506779, 0.709798], PointSize[
0.009166666666666668], AbsoluteThickness[1.6],
LineBox[CompressedData["
1:eJxVlHtQVHUUxy+PQRRFKHJkBASLACESIZCH7FdYljfsLizLikCjKwPEaKIS
OQnXBGwwHARswIEht5cDESSgyJgsD5dXiYgYAcVT3s8QCE2pxnP/aGd27nzm
e8/u75zf+X7NDh8XH1VnGEb+7/e/56vPAu//TwauPinWbpmzxNpocb/nb4Fx
Yj00tvRJBEcGiA3wVcNYzsbyh8TbcT/ipZV5+j1iI/TdNLROK/qJ2BQGisq/
ih/dJd6FQvNLw7KcZuK3UJClWca/8oj4bRTv6zZUPB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pDhzOVaRFMPdnxT1KZ1Tu76gPGOl0DaTzg66Up4ppeCrJZc5pHB5Fo6lH6os
O0SUZwhH859bnrT8yPklHA9XDeT9n9L+KcMRq3YpKqKgjeplSJ355Va6w6+8
fwBK4+GO
"]]}}, {{}, {}}},
AspectRatio->NCache[
Rational[1, 5], 0.2],
Axes->{True, True},
AxesLabel->{None, None},
AxesOrigin->{0., 0},
DisplayFunction->Identity,
Frame->{{True, True}, {True, True}},
FrameLabel->{{
FormBox[
"\"|\\!\\(\\*SubscriptBox[\\(\[Alpha]\\), \
\\(0\\)]\\)\\!\\(\\*SuperscriptBox[\\(|\\), \\(2\\)]\\)\"", TraditionalForm],
None}, {
FormBox["\"\"", TraditionalForm], None}},
FrameTicks->{{Automatic, Automatic}, {Automatic, Automatic}},
GridLines->{None, None},
GridLinesStyle->Directive[
GrayLevel[0.5, 0.4]],
ImagePadding->{{41., 1.5}, {36., 6.5}},
ImageSize->600,
Method->{
"OptimizePlotMarkers" -> True, "OptimizePlotMarkers" -> True,
"CoordinatesToolOptions" -> {"DisplayFunction" -> ({
Identity[
Part[#, 1]],
Identity[
Part[#, 2]]}& ), "CopiedValueFunction" -> ({
Identity[
Part[#, 1]],
Identity[
Part[#, 2]]}& )}},
PlotRange->{{0., 100.}, {0, 1}},
PlotRangeClipping->True,
PlotRangePadding->{{
Scaled[0.02],
Scaled[0.02]}, {0, 0}},
Ticks->{Automatic, Automatic}], {315., -60.},
ImageScaled[{0.5, 0.5}], {600, 120.}], InsetBox[
GraphicsBox[{{}, {{}, {},
{RGBColor[0.368417, 0.506779, 0.709798], PointSize[
0.009166666666666668], AbsoluteThickness[1.6],
LineBox[CompressedData["
1:eJxVlHtMk2cUhyuoILiAAwIrziHrwKljFhEo5fLjVlqk0JaWFpWFcAkwNiDg
vDDAZjBgYDRMWLmIIDAWQBkXQRRxFbkzYCCaiIJINGNeFpBEG3FzWzjfH/uS
pnm+5/sl7znv+57tUcmyWD0WixXz7++//7VnyYv1/wctISsjdY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8Av42Up+SVZpnWgWs
z0U/T2pn7nsYHK6k2s3EM/0Lg2VQ28Pe1zQv1GEoHExIrK37ifJhkHIv2Kzo
p1BeifYh/plcc5pHUMImkX2opofmlVoJ8OdSDRVUj1aJ+7a+/Mh0Zp6p0Pgo
h9O1SPMQKpwzCF8efBxHeRUqS7+b4Cc2UF6FM39MHlguY+ZtOMZejS115U97
/QNqXsYL
"]]}}, {{}, {}}},
AspectRatio->NCache[
Rational[1, 5], 0.2],
Axes->{True, True},
AxesLabel->{None, None},
AxesOrigin->{0., 0},
DisplayFunction->Identity,
Frame->{{True, True}, {True, True}},
FrameLabel->{{
FormBox[
"\"|\\!\\(\\*SubscriptBox[\\(\[Alpha]\\), \
\\(1\\)]\\)\\!\\(\\*SuperscriptBox[\\(|\\), \\(2\\)]\\)\"", TraditionalForm],
None}, {
FormBox["\"\"", TraditionalForm], None}},
FrameTicks->{{Automatic, Automatic}, {Automatic, Automatic}},
GridLines->{None, None},
GridLinesStyle->Directive[
GrayLevel[0.5, 0.4]],
ImagePadding->{{41., 1.5}, {36., 6.5}},
ImageSize->600,
Method->{
"OptimizePlotMarkers" -> True, "OptimizePlotMarkers" -> True,
"CoordinatesToolOptions" -> {"DisplayFunction" -> ({
Identity[
Part[#, 1]],
Identity[
Part[#, 2]]}& ), "CopiedValueFunction" -> ({
Identity[
Part[#, 1]],
Identity[
Part[#, 2]]}& )}},
PlotRange->{{0., 100.}, {0, 1}},
PlotRangeClipping->True,
PlotRangePadding->{{
Scaled[0.02],
Scaled[0.02]}, {0, 0}},
Ticks->{Automatic, Automatic}], {315., -180.},
ImageScaled[{0.5, 0.5}], {600, 120.}], InsetBox[
GraphicsBox[{{}, {{}, {},
{RGBColor[0.368417, 0.506779, 0.709798], PointSize[
0.009166666666666668], AbsoluteThickness[1.6],
LineBox[CompressedData["
1:eJxVlHlQE2cYh1MEBBVIgbEgxwDKIXLIfcOPcIscCYEED3qISgWEMgiO2JLS
OI2tVqxAQmWGWo5qQU1LS4uO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Hicsy3ScPJ
lI9DT/3dY190xirqaY6DhJ98bdTyIOW5SLpn0rQh8jzluYi62CHwcOiiPBdM
m36D1eM0z5q5uGGTWJteqZxn8TAvDu2uWVG+fzzUht7MCDAkFsTDv0ar4s9D
NM+a4xG5OcFIZq+cZwkQR3wW9eVgC+UTcPJ6trb1gzLKJ8BlMkw9p5tD+QRI
ZD+dtjJ7RPOMhwHRK3HI0TzK85C3Y43X23wp5XmYCSkOsB/5lfI8GMmD30pd
/ZDW5yPSg+V06Cn1D/jwmU4zGmUr9wsfxjYqtsXh1H/NfMhVz/fZzdN+YyRi
ckMyr4U1EPAPd27JaA==
"]]}}, {{}, {}}},
AspectRatio->NCache[
Rational[1, 5], 0.2],
Axes->{True, True},
AxesLabel->{None, None},
AxesOrigin->{0., 0},
DisplayFunction->Identity,
Frame->{{True, True}, {True, True}},
FrameLabel->{{
FormBox[
"\"|\\!\\(\\*SubscriptBox[\\(\[Alpha]\\), \
\\(2\\)]\\)\\!\\(\\*SuperscriptBox[\\(|\\), \\(2\\)]\\)\"", TraditionalForm],
None}, {
FormBox["\"N\"", TraditionalForm], None}},
FrameTicks->{{Automatic, Automatic}, {Automatic, Automatic}},
GridLines->{None, None},
GridLinesStyle->Directive[
GrayLevel[0.5, 0.4]],
ImagePadding->{{41., 1.5}, {36., 6.5}},
ImageSize->600,
Method->{
"OptimizePlotMarkers" -> True, "OptimizePlotMarkers" -> True,
"CoordinatesToolOptions" -> {"DisplayFunction" -> ({
Identity[
Part[#, 1]],
Identity[
Part[#, 2]]}& ), "CopiedValueFunction" -> ({
Identity[
Part[#, 1]],
Identity[
Part[#, 2]]}& )}},
PlotRange->{{0., 100.}, {0, 1}},
PlotRangeClipping->True,
PlotRangePadding->{{
Scaled[0.02],
Scaled[0.02]}, {0, 0}},
Ticks->{Automatic, Automatic}], {315., -300.},
ImageScaled[{0.5, 0.5}], {600, 120.}]}, {}},
ImageSize->{
UpTo[600],
UpTo[360]},
PlotRange->{{0, 630.}, {-360., 0}},
PlotRangePadding->{6, 5}]], "Output",
CellChangeTimes->{
3.825482763967252*^9, {3.8328217316179447`*^9, 3.8328217455702047`*^9}},
CellLabel->
"Out[135]=",ExpressionUUID->"c25c4230-a02f-40f8-82b5-48d1989656bc"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{"(*", " ",
RowBox[{"export", " ", "to", " ", "Python", " ", "format"}], " ", "*)"}],
"\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"expPython", "[", "H_", "]"}], ":=",
RowBox[{"ExportString", "[",
RowBox[{
RowBox[{"N", "[",
RowBox[{"H", ",", "30"}], "]"}], ",", "\"\<RawJSON\>\"", ",",
RowBox[{"\"\<Compact\>\"", "\[Rule]", "True"}]}], "]"}]}],
"\[IndentingNewLine]",
RowBox[{"UnitaryMatrixQ", "[", "U", "]"}], "\[IndentingNewLine]",
RowBox[{"expPython", "[", "U", "]"}]}]}]], "Input",
CellChangeTimes->{{3.823916582924164*^9, 3.823916583252347*^9}, {
3.823917591919883*^9, 3.823917597505148*^9}, 3.823918867213162*^9},
CellLabel->"In[20]:=",ExpressionUUID->"c1b56c50-e2b5-4f9b-97de-60a5600b52b6"],
Cell[BoxData["True"], "Output",
CellChangeTimes->{{3.8239165860564623`*^9, 3.823916609937457*^9},
3.8239174820546494`*^9, 3.823917520007958*^9, {3.8239175940817127`*^9,
3.823917597796282*^9}, 3.825482764143334*^9},
CellLabel->"Out[21]=",ExpressionUUID->"001616fd-5864-4b92-af70-fb325b81d8cc"],
Cell[BoxData["\<\"[[0.9607936273555613,0.2716639952608249,5.544618392521859e-\
2,0],[-0.2716639952608249,0.8823808820666842,0.3841909065063188,0],[5.\
544618392521859e-2,-0.3841909065063188,0.9215872547111227,0],[0,0,0,1.\
00000000000000000000000000000]]\"\>"], "Output",
CellChangeTimes->{{3.8239165860564623`*^9, 3.823916609937457*^9},
3.8239174820546494`*^9, 3.823917520007958*^9, {3.8239175940817127`*^9,
3.823917597796282*^9}, 3.825482764144615*^9},
CellLabel->"Out[22]=",ExpressionUUID->"aa773f5e-03b8-4940-b56e-659aa288a227"]
}, Open ]]
},
WindowSize->{1440, 762},
WindowMargins->{{0, Automatic}, {Automatic, 0}},
FrontEndVersion->"12.3 for Mac OS X x86 (64-bit) (May 11, 2021)",
StyleDefinitions->"Default.nb",
ExpressionUUID->"47a061d6-ee9c-4b36-b60d-2c3b85d728ba"
]
(* End of Notebook Content *)
(* Internal cache information *)
(*CellTagsOutline
CellTagsIndex->{}
*)
(*CellTagsIndex
CellTagsIndex->{}
*)
(*NotebookFileOutline
Notebook[{
Cell[558, 20, 469, 9, 73, "Text",ExpressionUUID->"933d59a2-8561-489d-94ef-c1c2f8ed83d0"],
Cell[1030, 31, 552, 11, 46, "Text",ExpressionUUID->"9d2a057e-a21f-48ee-b416-b0a9d35983f2"],
Cell[1585, 44, 926, 25, 79, "Text",ExpressionUUID->"197f5913-2ab4-44b9-8daf-544322fa707c"],
Cell[2514, 71, 585, 14, 79, "Text",ExpressionUUID->"03fd6209-75a3-497f-a959-c5366de05c5e"],
Cell[CellGroupData[{
Cell[3124, 89, 4243, 108, 390, "Input",ExpressionUUID->"e3177bae-70b4-4bb4-921b-d9ec9ebcfaaf"],
Cell[CellGroupData[{
Cell[7392, 201, 2491, 67, 66, "Print",ExpressionUUID->"27d1e445-df54-4566-9b1c-fa9c565a6737"],
Cell[9886, 270, 8317, 220, 132, "Print",ExpressionUUID->"3a742c9a-f145-466d-8b7e-4853ef887a2f"]