Skip to content

Commit 4b853ac

Browse files
fix symmetric walk op to use the block-encoding qfunc and not the walk itself
1 parent 0d5c943 commit 4b853ac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

applications/cfd/qls_for_hybrid_solvers/qls_chebyshev_lcu.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"):\n",
7676
" my_reflect_about_zero(block)\n",
7777
" within_apply(\n",
78-
" lambda: walk_operator(block_enc, block, data),\n",
78+
" lambda: block_enc(block, data),\n",
7979
" lambda: my_reflect_about_zero(block),\n",
8080
" )\n",
8181
"\n",
@@ -291,9 +291,9 @@
291291
"Performing numpy Chebyshev interpolation, with degree 63\n",
292292
"Chebyshec LCU size: 5 qubits.\n",
293293
"Normalization factor for inversion: 0.5926349343907911\n",
294-
"time to syn: 90.84944820404053\n",
295-
"time to exe: 16.944632053375244\n",
296-
"Quantum program link: https://platform.classiq.io/circuit/37T1FyqFCScVkg82dkN2DCMwwbi\n"
294+
"time to syn: 68.76218581199646\n",
295+
"time to exe: 18.693821907043457\n",
296+
"Quantum program link: https://platform.classiq.io/circuit/39FLBk0fxtKjv8Uz1tHTbr1Hvxl\n"
297297
]
298298
}
299299
],
@@ -324,9 +324,9 @@
324324
"Performing numpy Chebyshev interpolation, with degree 63\n",
325325
"Chebyshec LCU size: 5 qubits.\n",
326326
"Normalization factor for inversion: 0.4151350173670834\n",
327-
"time to syn: 119.41847610473633\n",
328-
"time to exe: 23.28752899169922\n",
329-
"Quantum program link: https://platform.classiq.io/circuit/37T1ZH62NbvjrOQ1k0N5khsvJwV\n"
327+
"time to syn: 120.10498905181885\n",
328+
"time to exe: 23.857552766799927\n",
329+
"Quantum program link: https://platform.classiq.io/circuit/39FLRAeou4Sy4S25nbmooMIiuEf\n"
330330
]
331331
}
332332
],
@@ -351,7 +351,7 @@
351351
{
352352
"data": {
353353
"text/plain": [
354-
"<matplotlib.legend.Legend at 0x12ec924d0>"
354+
"<matplotlib.legend.Legend at 0x12d8e9c10>"
355355
]
356356
},
357357
"execution_count": 10,

0 commit comments

Comments
 (0)