qcheff.iswt¶
Submodules¶
Package Contents¶
Functions¶
Construct an NPAD object from an OperatorMatrix. |
API¶
- NPAD(hamiltonian: qcheff.operators.OperatorMatrix, **kwargs) qcheff.iswt.iswt.ExactIterativeSWT¶
Construct an NPAD object from an OperatorMatrix.
Parameters
hamiltonian : OperatorMatrix The operator to be transformed.
**kwargs Additional keyword arguments to be passed to NPADScipySparse or NPADCupySparse, depending on the backend of the input operator.
Returns
ExactIterativeSWT An ExactIterativeSWT object initialized with the input operator.
Notes
The backend of the input operator is determined using
cupyx.scipy.get_array_module. If the backend is “scipy”, NPADScipySparse is used. If the backend is “cupyx.scipy”, NPADCupySparse is used. Otherwise, a NotImplementedError is raised.