sf.physics.representations.Representation¶
- class mrmustard.physics.representations.Representation[source]¶
Bases:
ABC
A base class for representations.
Representations can be initialized using the
from_ansatz
method, which automatically equips them with all the functionality required to perform mathematical operations, such as equality, multiplication, subtraction, etc.Methods
from_ansatz
(ansatz)Returns a representation from an ansatz.
code/api/mrmustard.physics.representations.Representation
Download Python script
Download Notebook
View on GitHub