TrainSum
- class trainsum.trainsum.TrainSum(namespace: Any)
- Parameters:
namespace (ArrayNamespace)
- namespace: ArrayNamespace
Array namespace for the underlying array library.
- index_type: Any
Internally used index type.
Basics
Quantized dimension, defined by a sequence of digits. |
|
Domain, defining a one dimensional interval. |
|
Uniformly N-dimensional spaced grid. |
|
Base class describing the shape of a quantics tensor train. |
|
Singular value decomposition for matrices. |
|
Randomized singular value decomposition for matrices. |
|
QR decomposition for matrices. |
|
Strategy for sweeping through a tensor train. |
Construction
\(f(x)=v\). |
|
\(f(x)=e^{a(x-x_0)}\). |
|
\(f(x)=\sin{\left(a(x-x_0)\right)}\). |
|
\(f(x)=\cos{\left(a(x-x_0)\right)}\). |
|
\(f(x)=\sum_i{v_i(x-x_0)^i}\). |
|
Generic shift matrix. |
|
Binary vector defined by a slice. |
|
Binary operator defined by a slice. |
|
Three dimensional Toeplitz tensor. |
|
Construct generic quantics tensor trains from some provided data. |
Binary Tensor Trains
Linear integer equation: \(\sum^N_i c_i x_i = \Delta\). |
|
Modulo integer equation: \(\sum^N_i c_i x_i \mod m = \Delta\). |
|
Range integer equation: \(l_i \leq x_i \leq u_i\). |
|
Construct a tensor train from a sequence of integer equations. |
Discrete Wavelet Transform
Wavelet transformation matrix as a quantics tensor train. |
|
Inverse wavelet transformation matrix as a quantics tensor train. |
Fourier Transform
Quantum fourier transformation matrix as a quantics tensor train. |
|
Inverse quantum fourier transformation matrix as a quantics tensor train. |
|
Shift the zero frequencies to the middle of the spectrum. |
|
Inverse of the qftshift. |
|
Sample frequencies for the quantum fourier transform. |
Input/Output
Write a quantics tensor train or a uniform grid to a hdf5 group. |
|
Read a quantics tensor train or a uniform grid to a hdf5 group. |
Solver
GMRES iterative linear solver. |
|
Lanczos iterative eigenvalue solver. |
|
Variational eigenvalue solver for quantics tensor trains. |
|
Variational linear solver for quantics tensor trains. |
Operations
Form the outer product of multiple tensor trains by fusing them. |
|
Calculate the minimum and maximum values and indices. |
|
Add multiple tensor trains. |
|
Perform an einsum operation. |
|
Create an einsum expression to be used with tensor trains. |
|
Perform an evaluation at idxs of an einsum expression. |
|
Create an evaluation expression to be used with tensor trains. |
Context Manager
Exact einsum operations. |
|
Einsum operations based on matrix decompositions. |
|
Variational einsum operations. |
|
Manager for cross interpolation based operations. |
|
Manager for evaluate operations. |
|
Set options globally. |
|
Get the current options. |