Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

tensor4all-quanticstransform

Quantics transformation operators for tensor train methods. Port of Quantics.jl.

Key Types

  • LinearOperator — operator in TreeTN form; returned by all constructor functions
  • shift_operator() — cyclic shift: f(x) = g(x + offset) mod 2^R
  • flip_operator() — reflection: f(x) = g(2^R - x)
  • quantics_fourier_operator() — Quantics Fourier Transform (QFT)
  • affine_operator() — affine transform y = A·x + b with rational coefficients

Example

use tensor4all_quanticstransform::{shift_operator, flip_operator, BoundaryCondition};

// Create operators for R=4 sites (2^4 = 16 grid points)
let r = 4;
let shift_op = shift_operator(r, 3, BoundaryCondition::Periodic)?;
let flip_op = flip_operator(r)?;

// Operators are LinearOperator (TreeTN form) — apply to a TreeTN with
// tensor4all_treetn::apply_linear_operator()

Documentation