lloca.reps.tensorreps.TensorReps
- class lloca.reps.tensorreps.TensorReps(input, simplify=True)[source]
Bases:
tupleGeneric tensor representations
Create a tensor representation based on the input. This can be a string representation or a list of _TensorMulRep instances.
- Parameters:
input (Union[TensorReps, str, List[_TensorMulRep]]) – The input to initialize the tensor reps. If input is a string, it is parsed to extract the tensor representations. If input is a list, it should contain instances of _TensorMulRep.
simplify (bool) – Whether to simplify the tensor reps after initialization. Default is True.
- property dim
The total dimension of the tensor reps.
- property is_sorted
Whether the tensor reps are sorted by the order of the reps.
- property max_rep
The tensor irrep with the highest order.
- property mul
The total multiplier of the tensor reps.
- property mul_scalars
The total multiplier of the tensor reps scalars.
- property mul_without_scalars
The total multiplier of the tensor reps without the scalars.
- property reps
The set of tensor reps.