AmplitudeVector
- class adcc.AmplitudeVector(*args, **kwargs)
Bases:
dictConstruct an AmplitudeVector. Typical use cases are
AmplitudeVector(ph=tensor_singles, pphh=tensor_doubles).Attributes Summary
blocksblocks_phReturn the blocks which are used inside the vector.
needs_evaluationMethods Summary
copy()Return a copy of the AmplitudeVector
dot(other)Return the dot product with another AmplitudeVector or the dot products with a list of AmplitudeVectors.
empty_like()Return an empty AmplitudeVector of the same shape and symmetry
evaluate()nosym_like()Return an empty AmplitudeVector of the same shape and symmetry
ones_like()Return an empty AmplitudeVector of the same shape and symmetry
set_random()zeros_like()Return an AmplitudeVector of the same shape and symmetry with all elements set to zero
Attributes Documentation
- blocks
- blocks_ph
Return the blocks which are used inside the vector. Note: This is a temporary name. The attribute will be removed in 0.16.0.
- needs_evaluation
Methods Documentation
- copy()
Return a copy of the AmplitudeVector
- dot(other)
Return the dot product with another AmplitudeVector or the dot products with a list of AmplitudeVectors. In the latter case a np.ndarray is returned.
- empty_like()
Return an empty AmplitudeVector of the same shape and symmetry
- evaluate()
- nosym_like()
Return an empty AmplitudeVector of the same shape and symmetry
- ones_like()
Return an empty AmplitudeVector of the same shape and symmetry
- set_random()
- zeros_like()
Return an AmplitudeVector of the same shape and symmetry with all elements set to zero