Bases#
Trainable sparsifying bases. Circuit bases (QFT, entangled QFT, TEBD, MERA, Rich, RealRich, DCT-IV) act on a whole 2^m x 2^n image; BlockedBasis tiles an inner basis over image blocks. The *_code and *_mat helpers build the underlying einsum circuits and reference DFT matrices.
Sparse-basis subpackage.
Two families:
bases.circuit— full circuit topologies (QFT, EntangledQFT, TEBD, MERA), comparable to FFT/DCT.bases.block— BlockedBasis over arbitrary block partitions (Rich/RealRich are re-exported here for back-compat; they live in circuit).
The abstract base class and bases_allclose helper live in bases.base.
Contents
QFT tensor-network basis. |
|
QFT + appended entanglement layer on |
|
2D TEBD basis with row + column rings of controlled-phase gates. |
|
2D MERA basis. |
|
DCT-IV tensor-network basis: the real-orthogonal, ancilla-free analogue of |
|
QFT topology with H + learnable U(4) gates instead of H + CP. |
|
QFT topology with H + real-orthogonal 2-qubit gates. |
|
Wraps an inner parametric basis as a within-block transform. |
|
Structural interface shared by every basis: an |
|
Return |
|
Fit a parametric basis so its forward circuit ≈ DCT_2D. |
|
Semantic equality across any of the registered basis types. |
|
Return |
|
Return |
|
Return |
|
Return |
|
Apply 2D QFT circuit to a (2^m, 2^n) image. |
|
Apply 2D inverse QFT circuit. |