Skip to content

Commit 9f04405

Browse files
committed
added comment for pyqsp version
1 parent 04b51af commit 9f04405

File tree

5 files changed

+14
-33
lines changed

5 files changed

+14
-33
lines changed

algorithms/differential_equations/time_marching/time_marching.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@
425425
}
426426
],
427427
"source": [
428+
"# The following code assumes pyqsp version 0.1.6\n",
429+
"# !pip install pyqsp==0.1.6\n",
428430
"import pyqsp\n",
429431
"from pyqsp.angle_sequence import QuantumSignalProcessingPhases\n",
430432
"\n",

algorithms/qsvt/qsvt_fixed_point_amplitude_amplification/qsvt_fixed_point_amplitude_amplification.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@
283283
}
284284
],
285285
"source": [
286+
"# The following code assumes pyqsp version 0.1.6\n",
287+
"# !pip install pyqsp==0.1.6\n",
286288
"import pyqsp\n",
287289
"\n",
288290
"DEGREE = 25\n",

algorithms/qsvt/qsvt_matrix_inversion/qsvt_matrix_inversion.ipynb

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -287,30 +287,6 @@
287287
"\n",
288288
"@qfunc\n",
289289
"def my_qsvt_step(\n",
290-
" phase_seq: CArray[CReal],\n",
291-
" index: CInt,\n",
292-
" u: QCallable[QArray[QBit]],\n",
293-
" state: QArray[QBit],\n",
294-
" aux: QBit,\n",
295-
"):\n",
296-
" my_projector_controlled_phase(phase_seq[2 * index], proj_cnot_1, state, aux)\n",
297-
" u(state)\n",
298-
" my_projector_controlled_phase(\n",
299-
" phase_seq[2 * index + 1],\n",
300-
" proj_cnot_2,\n",
301-
" state,\n",
302-
" aux,\n",
303-
" )\n",
304-
"\n",
305-
" if_(\n",
306-
" condition=2 * index + 2 == phase_seq.len,\n",
307-
" then=lambda: IDENTITY(state),\n",
308-
" else_=lambda: invert(lambda: u(state)),\n",
309-
" )\n",
310-
"\n",
311-
"\n",
312-
"@qfunc\n",
313-
"def my_qsvt_step(\n",
314290
" phase1: CReal,\n",
315291
" phase2: CReal,\n",
316292
" proj_cnot_1: QCallable[QArray[QBit], QBit],\n",
@@ -470,6 +446,8 @@
470446
}
471447
],
472448
"source": [
449+
"# The following code assumes pyqsp version 0.1.6\n",
450+
"# !pip install pyqsp==0.1.6\n",
473451
"import pyqsp\n",
474452
"\n",
475453
"pg = pyqsp.poly.PolyOneOverX()\n",

functions/qmod_library_reference/classiq_open_library/qsvt/qsvt.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
"\n",
7272
"import numpy as np\n",
7373
"from numpy.polynomial import Polynomial\n",
74+
"\n",
75+
"# The following code assumes pyqsp version 0.1.6\n",
76+
"# !pip install pyqsp==0.1.6\n",
7477
"from pyqsp.angle_sequence import QuantumSignalProcessingPhases\n",
7578
"\n",
7679
"from classiq import *\n",

tutorials/popular_usage_examples/hamiltonian_simulation/hamiltonian_simulation_with_block_encoding/hamiltonian_simulation_with_block_encoding.ipynb

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,7 @@
481481
{
482482
"name": "stdout",
483483
"output_type": "stream",
484-
"text": [
485-
""
486-
]
484+
"text": []
487485
}
488486
],
489487
"source": [
@@ -856,9 +854,7 @@
856854
{
857855
"name": "stdout",
858856
"output_type": "stream",
859-
"text": [
860-
""
861-
]
857+
"text": []
862858
}
863859
],
864860
"source": [
@@ -989,6 +985,8 @@
989985
}
990986
],
991987
"source": [
988+
"# The following code assumes pyqsp version 0.1.6\n",
989+
"# !pip install pyqsp==0.1.6\n",
992990
"import pyqsp\n",
993991
"from pyqsp.angle_sequence import Polynomial, QuantumSignalProcessingPhases\n",
994992
"\n",
@@ -1207,9 +1205,7 @@
12071205
{
12081206
"name": "stdout",
12091207
"output_type": "stream",
1210-
"text": [
1211-
""
1212-
]
1208+
"text": []
12131209
}
12141210
],
12151211
"source": [

0 commit comments

Comments
 (0)