sf.physics.representations.Representation¶
- class mrmustard.physics.representations.Representation[source]¶
Bases:
ABCA base class for representations.
Representations can be initialized using the
from_ansatzmethod, 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