qimpy.Energy
- class Energy(name='E')
Bases:
dict[str,float|Tensor]Energy of system with access to components
- Parameters:
name (str)
- __init__(name='E')
- Parameters:
name (str)
- Return type:
None
Methods
clearD.clear() -> None.
copyD.copy() -> a shallow copy of D
fromkeysCreate a new dictionary with keys from iterable and values set to value.
getReturn the value for key if key is in the dictionary, else default.
itemsD.items() -> a set-like object providing a view on D's items
keysD.keys() -> a set-like object providing a view on D's keys
popD.pop(k[,d]) -> v, remove specified key and return the corresponding value.
popitemRemove and return a (key, value) pair as a 2-tuple.
setdefaultInsert key with a value of default if key is not in the dictionary.
sum_tensorupdateD.update([E, ]**F) -> None.
valuesD.values() -> an object providing a view on D's values
Attributes
standard label for (free) energy type, e.g., E, A, Phi etc.
- name: str
standard label for (free) energy type, e.g., E, A, Phi etc.