Skip to content

Commit c3ea60b

Browse files
Adam GitterAdamg-classiq
authored andcommitted
fixed links
1 parent bc3463d commit c3ea60b

File tree

1 file changed

+68
-84
lines changed

1 file changed

+68
-84
lines changed

tutorials/workshops/oracle_workshop/oracles_workshop.ipynb

Lines changed: 68 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 22,
5+
"execution_count": 43,
66
"id": "0",
77
"metadata": {},
88
"outputs": [],
@@ -107,7 +107,7 @@
107107
},
108108
{
109109
"cell_type": "code",
110-
"execution_count": 23,
110+
"execution_count": 44,
111111
"id": "9",
112112
"metadata": {},
113113
"outputs": [],
@@ -137,7 +137,7 @@
137137
},
138138
{
139139
"cell_type": "code",
140-
"execution_count": 24,
140+
"execution_count": 45,
141141
"id": "12",
142142
"metadata": {},
143143
"outputs": [],
@@ -156,7 +156,7 @@
156156
},
157157
{
158158
"cell_type": "code",
159-
"execution_count": 25,
159+
"execution_count": 46,
160160
"id": "13",
161161
"metadata": {
162162
"colab": {
@@ -179,7 +179,7 @@
179179
"name": "stdout",
180180
"output_type": "stream",
181181
"text": [
182-
"Quantum program link: https://platform.classiq.io/circuit/33367rxzbZSTd9ERZbbHvNHJQ7s\n"
182+
"Quantum program link: https://platform.classiq.io/circuit/333EX9Xfltpv6SiEWSLNBc03AF9\n"
183183
]
184184
}
185185
],
@@ -221,7 +221,7 @@
221221
"\n",
222222
"![Oracle_fig](https://docs.classiq.io/resources/phase_kickback_workshop.png)\n",
223223
"\n",
224-
"For more information, refer to the [phase kickback](https://docs.classiq.io/latest/classiq_101/quantum_primitives_with_classiq/phase_kickback/) notebook."
224+
"For more information, refer to the [phase kickback](https://docs.classiq.io/latest/explore/tutorials/basic_tutorials/quantum_primitives/phase_kickback/phase_kickback/) notebook."
225225
]
226226
},
227227
{
@@ -236,15 +236,15 @@
236236
},
237237
{
238238
"cell_type": "code",
239-
"execution_count": 26,
239+
"execution_count": 47,
240240
"id": "16",
241241
"metadata": {},
242242
"outputs": [
243243
{
244244
"name": "stdout",
245245
"output_type": "stream",
246246
"text": [
247-
"Quantum program link: https://platform.classiq.io/circuit/333682Ofz1ZWwrsVLS9w3veJ9vS\n"
247+
"Quantum program link: https://platform.classiq.io/circuit/333EXUuGhCIb4aOIDRAq265Sqtj\n"
248248
]
249249
}
250250
],
@@ -273,7 +273,7 @@
273273
},
274274
{
275275
"cell_type": "code",
276-
"execution_count": 27,
276+
"execution_count": 48,
277277
"id": "17",
278278
"metadata": {},
279279
"outputs": [
@@ -391,7 +391,7 @@
391391
},
392392
{
393393
"cell_type": "code",
394-
"execution_count": 28,
394+
"execution_count": 49,
395395
"id": "25",
396396
"metadata": {},
397397
"outputs": [],
@@ -404,15 +404,15 @@
404404
},
405405
{
406406
"cell_type": "code",
407-
"execution_count": 29,
407+
"execution_count": 50,
408408
"id": "26",
409409
"metadata": {},
410410
"outputs": [
411411
{
412412
"name": "stdout",
413413
"output_type": "stream",
414414
"text": [
415-
"Quantum program link: https://platform.classiq.io/circuit/33368VNOJ01SoR2V1hpvkNLjLqy\n"
415+
"Quantum program link: https://platform.classiq.io/circuit/333EXnfDjsWJPl4p4hbQgLtRLG3\n"
416416
]
417417
}
418418
],
@@ -424,7 +424,7 @@
424424
},
425425
{
426426
"cell_type": "code",
427-
"execution_count": 30,
427+
"execution_count": 51,
428428
"id": "27",
429429
"metadata": {},
430430
"outputs": [],
@@ -481,7 +481,7 @@
481481
},
482482
{
483483
"cell_type": "code",
484-
"execution_count": 31,
484+
"execution_count": 52,
485485
"id": "33",
486486
"metadata": {},
487487
"outputs": [],
@@ -507,7 +507,7 @@
507507
},
508508
{
509509
"cell_type": "code",
510-
"execution_count": 32,
510+
"execution_count": 53,
511511
"id": "35",
512512
"metadata": {},
513513
"outputs": [],
@@ -528,48 +528,32 @@
528528
},
529529
{
530530
"cell_type": "code",
531-
"execution_count": 33,
531+
"execution_count": 54,
532532
"id": "36",
533533
"metadata": {},
534534
"outputs": [
535-
{
536-
"name": "stderr",
537-
"output_type": "stream",
538-
"text": [
539-
"/Users/adamgitter/Library/Caches/pypoetry/virtualenvs/backend-X8DVKPvc-py3.11/lib/python3.11/site-packages/classiq/model_expansions/transformers/type_modifier_inference.py:185: ClassiqDeprecationWarning: The use of variable 'x' does not conform to its declared modifier: expected 'Permutable', but found 'Mutable'.\n",
540-
"Tip: If the cumulative use of the variable in the function matches 'Permutable', use the `unchecked` flag to instruct the compiler to disregard individual operations.\n",
541-
"\tat file grover.py line 54 character 43\n",
542-
"The deprecation warning will be elevated to an error starting July 23, 2025, at the earliest.\n",
543-
" warnings.warn(\n",
544-
"/Users/adamgitter/Library/Caches/pypoetry/virtualenvs/backend-X8DVKPvc-py3.11/lib/python3.11/site-packages/classiq/model_expansions/transformers/type_modifier_inference.py:185: ClassiqDeprecationWarning: The use of variable 'target' does not conform to its declared modifier: expected 'Const', but found 'Mutable'.\n",
545-
"Tip: If the cumulative use of the variable in the function matches 'Const', use the `unchecked` flag to instruct the compiler to disregard individual operations.\n",
546-
"\tat file grover.py line 54 character 16\n",
547-
"The deprecation warning will be elevated to an error starting July 23, 2025, at the earliest.\n",
548-
" warnings.warn(\n"
549-
]
550-
},
551535
{
552536
"data": {
553537
"text/plain": [
554-
"[{'vars': {'x': 0, 'y': 0}}: 143,\n",
555-
" {'vars': {'x': 2, 'y': 2}}: 138,\n",
556-
" {'vars': {'x': 3, 'y': 3}}: 138,\n",
557-
" {'vars': {'x': 0, 'y': 2}}: 132,\n",
538+
"[{'vars': {'x': 2, 'y': 1}}: 152,\n",
539+
" {'vars': {'x': 3, 'y': 0}}: 136,\n",
540+
" {'vars': {'x': 3, 'y': 1}}: 135,\n",
541+
" {'vars': {'x': 3, 'y': 3}}: 134,\n",
542+
" {'vars': {'x': 1, 'y': 3}}: 133,\n",
543+
" {'vars': {'x': 2, 'y': 2}}: 133,\n",
544+
" {'vars': {'x': 2, 'y': 3}}: 132,\n",
558545
" {'vars': {'x': 2, 'y': 0}}: 131,\n",
559-
" {'vars': {'x': 2, 'y': 1}}: 131,\n",
560-
" {'vars': {'x': 1, 'y': 1}}: 130,\n",
561-
" {'vars': {'x': 0, 'y': 1}}: 129,\n",
562-
" {'vars': {'x': 3, 'y': 0}}: 129,\n",
563-
" {'vars': {'x': 1, 'y': 0}}: 128,\n",
564-
" {'vars': {'x': 1, 'y': 2}}: 127,\n",
565-
" {'vars': {'x': 0, 'y': 3}}: 125,\n",
566-
" {'vars': {'x': 2, 'y': 3}}: 125,\n",
567-
" {'vars': {'x': 1, 'y': 3}}: 116,\n",
568-
" {'vars': {'x': 3, 'y': 1}}: 114,\n",
569-
" {'vars': {'x': 3, 'y': 2}}: 112]"
546+
" {'vars': {'x': 0, 'y': 0}}: 129,\n",
547+
" {'vars': {'x': 0, 'y': 2}}: 128,\n",
548+
" {'vars': {'x': 0, 'y': 3}}: 121,\n",
549+
" {'vars': {'x': 1, 'y': 0}}: 120,\n",
550+
" {'vars': {'x': 3, 'y': 2}}: 119,\n",
551+
" {'vars': {'x': 1, 'y': 1}}: 119,\n",
552+
" {'vars': {'x': 1, 'y': 2}}: 118,\n",
553+
" {'vars': {'x': 0, 'y': 1}}: 108]"
570554
]
571555
},
572-
"execution_count": 33,
556+
"execution_count": 54,
573557
"metadata": {},
574558
"output_type": "execute_result"
575559
}
@@ -617,15 +601,15 @@
617601
},
618602
{
619603
"cell_type": "code",
620-
"execution_count": 34,
604+
"execution_count": 55,
621605
"id": "41",
622606
"metadata": {},
623607
"outputs": [
624608
{
625609
"name": "stdout",
626610
"output_type": "stream",
627611
"text": [
628-
"Quantum program link: https://platform.classiq.io/circuit/33369RIkI3Jy95KPRNIEUHtkAkM\n"
612+
"Quantum program link: https://platform.classiq.io/circuit/333EYeLSVs7RGUkXqlgAj5irIFz\n"
629613
]
630614
}
631615
],
@@ -674,7 +658,7 @@
674658
},
675659
{
676660
"cell_type": "code",
677-
"execution_count": 35,
661+
"execution_count": 56,
678662
"id": "42",
679663
"metadata": {
680664
"executionInfo": {
@@ -750,15 +734,15 @@
750734
},
751735
{
752736
"cell_type": "code",
753-
"execution_count": 36,
737+
"execution_count": 57,
754738
"id": "44",
755739
"metadata": {},
756740
"outputs": [
757741
{
758742
"name": "stdout",
759743
"output_type": "stream",
760744
"text": [
761-
"Quantum program link: https://platform.classiq.io/circuit/33369yl4DyTwGqzTOcXCrOBiJXu\n"
745+
"Quantum program link: https://platform.classiq.io/circuit/333EZAhTS7qIkIKj1pkbLSx3tig\n"
762746
]
763747
}
764748
],
@@ -784,7 +768,7 @@
784768
},
785769
{
786770
"cell_type": "code",
787-
"execution_count": 37,
771+
"execution_count": 58,
788772
"id": "45",
789773
"metadata": {},
790774
"outputs": [
@@ -794,14 +778,14 @@
794778
"text": [
795779
"x y |amp| angle/π note\n",
796780
"----------------------------------\n",
797-
"0 0 0.354 +0.12π \n",
798-
"0 1 0.354 +0.12π \n",
799-
"0 2 0.354 +0.12π \n",
800-
"0 3 0.354 +0.12π \n",
801-
"1 0 0.354 +0.12π \n",
802-
"1 1 0.354 +0.12π \n",
803-
"1 2 0.354 -0.88π ← solution\n",
804-
"1 3 0.354 +0.12π \n"
781+
"0 0 0.354 +0.50π \n",
782+
"0 1 0.354 +0.50π \n",
783+
"0 2 0.354 +0.50π \n",
784+
"0 3 0.354 +0.50π \n",
785+
"1 0 0.354 +0.50π \n",
786+
"1 1 0.354 +0.50π \n",
787+
"1 2 0.354 -0.50π ← solution\n",
788+
"1 3 0.354 +0.50π \n"
805789
]
806790
}
807791
],
@@ -849,7 +833,7 @@
849833
},
850834
{
851835
"cell_type": "code",
852-
"execution_count": 38,
836+
"execution_count": 59,
853837
"id": "47",
854838
"metadata": {},
855839
"outputs": [],
@@ -872,7 +856,7 @@
872856
},
873857
{
874858
"cell_type": "code",
875-
"execution_count": 39,
859+
"execution_count": 60,
876860
"id": "48",
877861
"metadata": {},
878862
"outputs": [
@@ -924,7 +908,7 @@
924908
},
925909
{
926910
"cell_type": "code",
927-
"execution_count": 40,
911+
"execution_count": 61,
928912
"id": "51",
929913
"metadata": {},
930914
"outputs": [],
@@ -941,7 +925,7 @@
941925
},
942926
{
943927
"cell_type": "code",
944-
"execution_count": 41,
928+
"execution_count": 62,
945929
"id": "52",
946930
"metadata": {},
947931
"outputs": [],
@@ -959,39 +943,39 @@
959943
},
960944
{
961945
"cell_type": "code",
962-
"execution_count": 42,
946+
"execution_count": 63,
963947
"id": "53",
964948
"metadata": {},
965949
"outputs": [
966950
{
967951
"name": "stdout",
968952
"output_type": "stream",
969953
"text": [
970-
"Quantum program link: https://platform.classiq.io/circuit/3336B5z11cljwBj32td5T2sUffw\n"
954+
"Quantum program link: https://platform.classiq.io/circuit/333EaTIguJPylinHo20XImvejYC\n"
971955
]
972956
},
973957
{
974958
"data": {
975959
"text/plain": [
976-
"[{'vars': {'x': 2, 'y': 0}}: 972,\n",
977-
" {'vars': {'x': 3, 'y': 1}}: 952,\n",
978-
" {'vars': {'x': 0, 'y': 2}}: 17,\n",
979-
" {'vars': {'x': 2, 'y': 2}}: 12,\n",
980-
" {'vars': {'x': 0, 'y': 3}}: 11,\n",
981-
" {'vars': {'x': 0, 'y': 1}}: 10,\n",
982-
" {'vars': {'x': 3, 'y': 2}}: 9,\n",
983-
" {'vars': {'x': 0, 'y': 0}}: 9,\n",
984-
" {'vars': {'x': 3, 'y': 3}}: 9,\n",
960+
"[{'vars': {'x': 3, 'y': 1}}: 1016,\n",
961+
" {'vars': {'x': 2, 'y': 0}}: 927,\n",
962+
" {'vars': {'x': 2, 'y': 3}}: 11,\n",
963+
" {'vars': {'x': 3, 'y': 0}}: 10,\n",
964+
" {'vars': {'x': 0, 'y': 3}}: 10,\n",
965+
" {'vars': {'x': 0, 'y': 2}}: 9,\n",
985966
" {'vars': {'x': 1, 'y': 0}}: 9,\n",
986-
" {'vars': {'x': 2, 'y': 1}}: 9,\n",
987-
" {'vars': {'x': 1, 'y': 1}}: 8,\n",
988-
" {'vars': {'x': 2, 'y': 3}}: 8,\n",
989-
" {'vars': {'x': 1, 'y': 3}}: 7,\n",
990-
" {'vars': {'x': 1, 'y': 2}}: 3,\n",
991-
" {'vars': {'x': 3, 'y': 0}}: 3]"
967+
" {'vars': {'x': 2, 'y': 2}}: 9,\n",
968+
" {'vars': {'x': 0, 'y': 0}}: 8,\n",
969+
" {'vars': {'x': 3, 'y': 2}}: 7,\n",
970+
" {'vars': {'x': 3, 'y': 3}}: 7,\n",
971+
" {'vars': {'x': 0, 'y': 1}}: 6,\n",
972+
" {'vars': {'x': 1, 'y': 1}}: 6,\n",
973+
" {'vars': {'x': 1, 'y': 3}}: 5,\n",
974+
" {'vars': {'x': 1, 'y': 2}}: 4,\n",
975+
" {'vars': {'x': 2, 'y': 1}}: 4]"
992976
]
993977
},
994-
"execution_count": 42,
978+
"execution_count": 63,
995979
"metadata": {},
996980
"output_type": "execute_result"
997981
}

0 commit comments

Comments
 (0)