Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -471,18 +471,19 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"\n",
"from classiq import *\n",
"from classiq.qmod.symbolic import sqrt\n",
"\n",
"\n",
"@qfunc\n",
"def pre_prepared_state(q: QArray[QBit]) -> None:\n",
"def pre_prepared_state(q: Output[QArray]) -> None:\n",
" prepare_state(\n",
" [\n",
" 1 / 8,\n",
" 1 / 8,\n",
" 1 / 8 - sqrt(3) / 16,\n",
" 1 / 8 + sqrt(3) / 16,\n",
" 1 / 8 - np.sqrt(3) / 16,\n",
" 1 / 8 + np.sqrt(3) / 16,\n",
" 1 / 8,\n",
" 1 / 8,\n",
" 1 / 8,\n",
Expand Down Expand Up @@ -834,7 +835,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -848,7 +849,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down