You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ This issue is part of an internal assignment and not meant for external contributors.
The fermi module has several functions and classes for creating and manipulating fermionic operators. It will be useful to have tools for obtaining the matrix representation of these operators. The FermiWord and FermiSentence objects can be upgraded to have a to_mat() method that allows computing their matrix representation, similar to the PauliWord and PauliSentence classes. The users can then compute the matrix as
The to_mat() method should be added as an instance method to FermiWord and FermiSentence. The method should have an optional keyword argument, n, for specifying the total number of orbitals which determines the matrix size.
Requirements
The computed matrix should properly describe the behaviour of fermionic operators.
The computed matrix should satisfy the commutation relationship between fermionic operators.
The text was updated successfully, but these errors were encountered:
Feature details
The fermi module has several functions and classes for creating and manipulating fermionic operators. It will be useful to have tools for obtaining the matrix representation of these operators. The FermiWord and FermiSentence objects can be upgraded to have a
to_mat()
method that allows computing their matrix representation, similar to thePauliWord
andPauliSentence
classes. The users can then compute the matrix asImplementation
The
to_mat()
method should be added as an instance method toFermiWord
andFermiSentence
. The method should have an optional keyword argument,n
, for specifying the total number of orbitals which determines the matrix size.Requirements
The text was updated successfully, but these errors were encountered: