quspin.tools.lanczos.lin_comb_Q_T
- quspin.tools.lanczos.lin_comb_Q_T(coeff, Q_T, out=None)[source]
Computes a linear combination of the Lanczos basis vectors:
\[v_j = \sum_{i=1}^{m} c_i \left(Q^T\right)_{ij}\]- Parameters:
- coeff(m,) array_like
list of coefficients to compute the linear combination of Lanczos basis vectors with.
- Q_T(m,n) numpy.ndarray, generator
Lanczos basis vectors or a generator for the Lanczos basis.
- out(n,) numpy.ndarray, optional
Array to store the result in.
- Returns:
- (n,) numpy.ndarray
Linear combination \(v\) of Lanczos basis vectors.
Examples
>>> v = lin_comb_Q(coeff,Q_T)