Skip to content

Commit ff9fb0e

Browse files
committed
Fix imports
1 parent bb1143d commit ff9fb0e

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
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: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,13 @@
844844
"preferences = Preferences(timeout_seconds=600)"
845845
]
846846
},
847+
{
848+
"cell_type": "markdown",
849+
"source": [],
850+
"metadata": {
851+
"collapsed": false
852+
}
853+
},
847854
{
848855
"cell_type": "markdown",
849856
"id": "43c249a1-9db3-4164-bec1-f345670d4cd1",
@@ -864,28 +871,7 @@
864871
},
865872
"outputs": [],
866873
"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",
874+
"from classiq import *\n",
889875
"from classiq.qmod.symbolic import log, pi\n",
890876
"\n",
891877
"# this constant will be multipled be a linear factor for each qbit of the qpe, so the\n",

0 commit comments

Comments
 (0)