Skip to content

Commit 5859724

Browse files
committed
Fix imports
1 parent bb1143d commit 5859724

File tree

2 files changed

+5
-39
lines changed

2 files changed

+5
-39
lines changed

algorithms/algebraic/shor/shor_modular_exponentiation.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
"metadata": {},
176176
"outputs": [],
177177
"source": [
178-
"from classiq.qmod import QNum, bind, control, within_apply\n",
178+
"from classiq import *\n",
179179
"from classiq.qmod.builtins.classical_functions import qft_const_adder_phase\n",
180180
"\n",
181181
"\n",
@@ -256,7 +256,7 @@
256256
},
257257
"outputs": [],
258258
"source": [
259-
"from classiq.qmod import QNum, inplace_prepare_int\n",
259+
"from classiq import *\n",
260260
"\n",
261261
"modulo_num = 15\n",
262262
"reg_len = math.ceil(math.log(modulo_num, 2)) + 1\n",
@@ -441,7 +441,7 @@
441441
"metadata": {},
442442
"outputs": [],
443443
"source": [
444-
"from classiq.qmod import SWAP, free\n",
444+
"from classiq import *\n",
445445
"from classiq.qmod.symbolic import min, mod_inverse\n",
446446
"\n",
447447
"\n",
@@ -535,7 +535,7 @@
535535
"metadata": {},
536536
"outputs": [],
537537
"source": [
538-
"from classiq.qmod import hadamard_transform\n",
538+
"from classiq import *\n",
539539
"\n",
540540
"modulo_num = 6\n",
541541
"reg_len = math.ceil(math.log(modulo_num, 2)) + 1\n",

community/QClass_2024/Submissions/HW4/Hisham_Mansour_HW4_qpe_for_molecules.ipynb

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -864,28 +864,7 @@
864864
},
865865
"outputs": [],
866866
"source": [
867-
"from classiq import molecule_problem_to_qmod\n",
868-
"from classiq.qmod import (\n",
869-
" CInt,\n",
870-
" Output,\n",
871-
" QArray,\n",
872-
" QBit,\n",
873-
" QCallable,\n",
874-
" QNum,\n",
875-
" allocate,\n",
876-
" allocate_num,\n",
877-
" control,\n",
878-
" invert,\n",
879-
" qfunc,\n",
880-
" repeat,\n",
881-
")\n",
882-
"from classiq.qmod.builtins import (\n",
883-
" H,\n",
884-
" apply_to_all,\n",
885-
" exponentiation_with_depth_constraint,\n",
886-
" molecule_hartree_fock,\n",
887-
" qft,\n",
888-
")\n",
867+
"from classiq import *\n",
889868
"from classiq.qmod.symbolic import log, pi\n",
890869
"\n",
891870
"# this constant will be multipled be a linear factor for each qbit of the qpe, so the\n",
@@ -1410,19 +1389,6 @@
14101389
"plt.show()"
14111390
]
14121391
},
1413-
{
1414-
"cell_type": "markdown",
1415-
"id": "9797b512-d41f-47c1-8c0f-4134f0500b80",
1416-
"metadata": {
1417-
"id": "9797b512-d41f-47c1-8c0f-4134f0500b80"
1418-
},
1419-
"source": [
1420-
"## References\n",
1421-
"\n",
1422-
"<a name='NC'>[1]</a>: [Michael A. Nielsen and Isaac L. Chuang. 2011. Quantum Computation and Quantum Information: 10th Anniversary Edition, Cambridge University Press, New York, NY, USA.\n",
1423-
"](http://mmrc.amss.cas.cn/tlb/201702/W020170224608149940643.pdf)\n"
1424-
]
1425-
},
14261392
{
14271393
"cell_type": "markdown",
14281394
"id": "ttDDvHfPDI4y",

0 commit comments

Comments
 (0)