Skip to content

Commit

Permalink
Now sparse by default
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWeaving committed Feb 22, 2023
1 parent ce2f6c3 commit 42ad7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symmer/symplectic/observable_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _ansatz_expectation_trotter_rotations(self,
def _ansatz_expectation_statevector(self,
ansatz_op: AnsatzOp,
ref_state: np.array,
sparse = False
sparse = True
) -> float:
""" Exact expectation value - expensive! Converts the ansatz operator to a sparse vector | psi >
and return the quantity < psi | Observable | psi >
Expand Down

0 comments on commit 42ad7c4

Please sign in to comment.