Feat(core): add power attribut to MOPolynomial

This commit is contained in:
Bertrand Benjamin 2018-12-07 10:47:00 +01:00
parent 1c02b57476
commit 79aaa3c5d9
1 changed files with 6 additions and 2 deletions

View File

@ -85,6 +85,10 @@ class MOpolynomial(MO):
"""
return max(self._coefs.keys())
@property
def power(self):
return self.degree
@property
def coefficients(self):
return self._coefs