From a8af7c0e3969670b10d9c68d81ca7ede05b72ff4 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 3 Mar 2024 18:54:15 +0100 Subject: Make State.from_index accept PolyVarIndex indices --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.rst') 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 -- cgit v1.2.1