aboutsummaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-03-03 18:54:15 +0100
committerNao Pross <np@0hm.ch>2024-03-03 18:54:15 +0100
commita8af7c0e3969670b10d9c68d81ca7ede05b72ff4 (patch)
treeee7521aa9405fe94222c64dc59c6cf27115e85a7 /README.rst
parentUpdate README, switch to reStructuredText (diff)
downloadmdpoly-a8af7c0e3969670b10d9c68d81ca7ede05b72ff4.tar.gz
mdpoly-a8af7c0e3969670b10d9c68d81ca7ede05b72ff4.zip
Make State.from_index accept PolyVarIndex indices
Diffstat (limited to '')
-rw-r--r--README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index f4deb4d..c539b15 100644
--- a/README.rst
+++ b/README.rst
@@ -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