diff options
author | Nao Pross <np@0hm.ch> | 2024-03-03 18:54:15 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-03-03 18:54:15 +0100 |
commit | a8af7c0e3969670b10d9c68d81ca7ede05b72ff4 (patch) | |
tree | ee7521aa9405fe94222c64dc59c6cf27115e85a7 /README.rst | |
parent | Update README, switch to reStructuredText (diff) | |
download | mdpoly-a8af7c0e3969670b10d9c68d81ca7ede05b72ff4.tar.gz mdpoly-a8af7c0e3969670b10d9c68d81ca7ede05b72ff4.zip |
Make State.from_index accept PolyVarIndex indices
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ to give an overview. for term in sparse.terms(entry): monomial_str = "" for idx in term: - var = state.from_index(idx.var_idx) + var = state.from_index(idx) monomial_str += f"{var.name}^{idx.power} " # Get the coefficient |