A scipy.sparse.csc vector is polynomial time to pass - I'm not converting
the operator to sparse. I think it would be worthwhile to allow bitstrings
as well and will add that functionality.
@@ -300,7 +301,7 @@ def expectation(sparse_operator, state):
"""Compute expectation value of operator with a state.
Args:
state_vector: scipy.sparse.csc vector representing a pure state,
state: scipy.sparse.csc vector representing a pure state,
The whole point of this function is to take these expectation values in
polynomial time with respect to N. Why would you give a scipy.sparse.csc
vector as input instead of a bit string?
A scipy.sparse.csc vector is polynomial time to pass - I'm not converting the operator to sparse. I think it would be worthwhile to allow bitstrings as well and will add that functionality.
On Mon, Jul 24, 2017 at 3:10 PM Ryan Babbush notifications@github.com wrote: