Skip to main content

Module accelerated

Module accelerated 

Source
Expand description

Chebyshev propagation on the GPU, checked against the CPU.

  • Calibration. The first 2 % of the steps (at least one, at most 50) run on the CPU in f64 and on the GPU from the same state. Their distance, relative to ‖ψ‖ and scaled linearly to the whole run, predicts the final error; above the tolerance the CPU does the rest. Otherwise the GPU continues from the CPU state.
  • Final check. The norm of every wave function must stay within the tolerance; if it does not (or the GPU fails), the CPU recomputes the whole run.

Functions§

propagate
steps steps ψ ← exp(−iH dt) ψ of the propagator cheb with the rescaled Hamiltonian h, for a block of vectors wave functions stored interleaved (as SparseMatrix::apply_block), on the device of options.