Skip to content

Commit 0abcb88

Browse files
committed
Reviews Addressed and changed notebook location
1 parent d7e3e29 commit 0abcb88

28 files changed

+207
-69
lines changed

applications/Block_encoding-ND_Laplacian/1D_Lap_BE.png renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/1D_Lap_BE.png

File renamed without changes.

applications/Block_encoding-ND_Laplacian/1D_Periodic_Laplacian_BE.qmod renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/1D_Periodic_Laplacian_BE.qmod

File renamed without changes.

applications/Block_encoding-ND_Laplacian/1D_Periodic_Laplacian_BE.synthesis_options.json renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/1D_Periodic_Laplacian_BE.synthesis_options.json

File renamed without changes.

applications/Block_encoding-ND_Laplacian/1D_structure.png renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/1D_structure.png

File renamed without changes.

applications/Block_encoding-ND_Laplacian/1d_discretization.png renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/1d_discretization.png

File renamed without changes.

applications/Block_encoding-ND_Laplacian/2D_Lap_structure.png renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/2D_Lap_structure.png

File renamed without changes.

applications/Block_encoding-ND_Laplacian/3D_Lap_structure.png renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/3D_Lap_structure.png

File renamed without changes.

applications/Block_encoding-ND_Laplacian/Ddim_Lap_BE.png renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/Ddim_Lap_BE.png

File renamed without changes.

applications/Block_encoding-ND_Laplacian/ND_Laplacian_BE.ipynb renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/ND_Laplacian_BE.ipynb

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"Block encoding is a well known technique in quantum computing used to embed non-unitary matrices on a quantum computer that only allows for unitary evolution. \n",
2424
"\n",
2525
"***Definition:*** \n",
26-
" Let $ a, n, m \\in \\mathbb{N} $ such that $ m = a + n $. A $ m $ -qubit unitary $ U $ is said to be an $(\\alpha, a)$ -block-encoding of an $ n $ -qubit operator $ A $ if \n",
26+
" Let $ a, n, m \\in \\mathbb{N} $ such that $ m = a + n $. An $ m $ -qubit unitary $ U $ is said to be an $(\\alpha, a)$ -block-encoding of an $ n $ -qubit operator $ A $ if \n",
2727
"\n",
2828
"$$\n",
2929
"\\tilde{A} = \\left( \\langle 0 |^{\\otimes a} \\otimes I_n \\right) U \\left( |0 \\rangle^{\\otimes a} \\otimes I_n \\right)\n",
@@ -32,10 +32,10 @@
3232
"\n",
3333
"where, $A = \\alpha \\tilde{A}$ . The parameters $(\\alpha, a)$ represent the *subnormalization factor* (which adjusts for encoding matrices of any norm), and the *number of ancilla qubits* used in the block-encoding scheme respectively. \n",
3434
"\n",
35-
"Efficiently block encoding arbitrary matrices is a very difficult problem and this task is not trivial even for well structured and sparse matrices. The paper by Sturm et al. 2025 (https://arxiv.org/abs/2509.02429), provides for efficient quantum circuits for block encoding $N-$ dimensional Laplacians, with periodic boundary conditions along all dimensions. This is useful in many applications, especially ones involving problems of linear algebra. Moreover, given an efficient block encoding of a matrix $\\tilde{A}$, its possible to efficiently construct a block encoding of certain polynomials of $\\tilde{A}$ through quantum singular value transformations (QSVT). \n",
35+
"Efficiently block encoding arbitrary matrices is a very difficult problem and this task is not trivial even for well structured and sparse matrices. The paper by Sturm et al. 2025 (https://arxiv.org/abs/2509.02429), provides efficient quantum circuits for block encoding $N-$ dimensional Laplacians, with periodic boundary conditions along all dimensions. This is useful in many applications, especially ones involving linear algebra problems. Moreover, given an efficient block encoding of a matrix $\\tilde{A}$, it's possible to efficiently construct a block encoding of certain polynomials of $\\tilde{A}$ through quantum singular value transformations (QSVT). \n",
3636
"\n",
3737
"### **Notebook contents**\n",
38-
"- ##### Block encoding circuits for D- dimensional Laplacian matrix with periodic boundary conditions along all dimnesions.\n",
38+
"- ##### Block encoding circuits for D-dimensional Laplacian matrix with periodic boundary conditions along all dimensions.\n",
3939
"___"
4040
]
4141
},
@@ -62,16 +62,17 @@
6262
"\\tag{1}\n",
6363
"\\end{equation}\n",
6464
"\n",
65-
"We impose **periodic boundary conditions**, meaning the function repeats itself across opposite sides of the domain:\n",
65+
"Consider a function $u$ on which the operator $L_D$ acts. We impose **periodic boundary conditions**, meaning the function repeats itself across opposite sides of the domain:\n",
6666
"$$\n",
67-
"v(x^{(0)},\\ldots,0,\\ldots,x^{(D-1)}) \n",
67+
"u(x^{(0)},\\ldots,0,\\ldots,x^{(D-1)}) \n",
6868
"= \n",
69-
"v(x^{(0)},\\ldots,1,\\ldots,x^{(D-1)}).\n",
69+
"u(x^{(0)},\\ldots,1,\\ldots,x^{(D-1)}).\n",
7070
"$$\n",
7171
"\n",
7272
"This ensures the domain “wraps around” in **every dimension**.\n",
7373
"\n",
7474
"\n",
75+
"\n",
7576
"To approximate the operator on a computer, we replace each interval with a **uniform grid** (*we assume equidistant grid points as per the paper*). \n",
7677
"\n",
7778
"For one dimension, choose\n",
@@ -109,6 +110,32 @@
109110
"j = \\ket{j^{(D-1)}}\\otimes \\cdots \\otimes\\ket{j^{(1)}}\\otimes\\ket{j^{(0)}},\n",
110111
"$$\n",
111112
"\n",
113+
"- ***Example***\n",
114+
"\n",
115+
" If $n = 3$ (so $N = 2^n = 8$), the index $j^{(d)} = 5$ is represented in the computational basis as\n",
116+
" $\n",
117+
" \\ket{5} = \\ket{101},\n",
118+
" $\n",
119+
" corresponding to the binary representation of the integer $5$.\n",
120+
" Explicitly, the basis state $\\lvert 5 \\rangle$ corresponds to the $2^n$-dimensional column vector\n",
121+
" $$\n",
122+
" \\lvert 5 \\rangle\n",
123+
" =\n",
124+
" \\begin{pmatrix}\n",
125+
" 0 \\\\\n",
126+
" 0 \\\\\n",
127+
" 0 \\\\\n",
128+
" 0 \\\\\n",
129+
" 0 \\\\\n",
130+
" 1 \\\\\n",
131+
" 0 \\\\\n",
132+
" 0\n",
133+
" \\end{pmatrix},\n",
134+
" $$\n",
135+
" where the single nonzero entry appears at position $5$, following zero-based indexing.\n",
136+
"\n",
137+
"\n",
138+
"\n",
112139
"This ordering turns the entire grid $\\Omega_{D,h}$ into a vector of $\\mathbf{\\Omega_{D,h}}$ size $N^D= 2^{nD}$ where,\n",
113140
"\n",
114141
"$$\n",
@@ -583,7 +610,7 @@
583610
},
584611
{
585612
"cell_type": "code",
586-
"execution_count": 5,
613+
"execution_count": 3,
587614
"id": "11",
588615
"metadata": {},
589616
"outputs": [],

applications/Block_encoding-ND_Laplacian/ND_Periodic_Laplacian_BE.qmod renamed to community/paper_implementation_project/Block_encoding-ND_Laplacian/ND_Periodic_Laplacian_BE.qmod

File renamed without changes.

0 commit comments

Comments
 (0)