Skip to main content

View on GitHub

Open this notebook in GitHub to run it yourself
This notebook verifies the various block encoding, whose code are given in this directory. The matrix input is assumed to be a sparse matrix. We verify the following quantum functions for block encoding:
  1. Prepare and Select for Pauli decomposition of the matrix.
The Select block is implemented with Gray code technique.
  1. Banded diagonal block encoding, according to Ref.
For both block encoding we construct a symmetric and non-symmetric versions.
We define a generic function for verifying block-encoding qfuncs:
Test a specific matrix

Block encoding of non-Hermitiam matrices (for QSVT solver)

Pauli block-encoding

Output:
output

Banded diagonals block-encoding

Output:
output

Block encoding of Hermitia matrices (for LCU Chebyshev solver)

Pauli block-encoding

Output:
output

Banded diagonal block-encoding

Output:
output