Skip to content

Commit

Permalink
Convert initial state to CSR
Browse files Browse the repository at this point in the history
  • Loading branch information
a-corni committed Dec 17, 2024
1 parent cdb7404 commit 6f90c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulser-simulation/pulser_simulation/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def set_initial_state(
"Incompatible shape of initial state."
+ f"Expected {legal_shape}, got {shape}."
)
self._initial_state = qutip.Qobj(state, dims=legal_dims)
self._initial_state = qutip.Qobj(state, dims=legal_dims).to("CSR")

@property
def evaluation_times(self) -> np.ndarray:
Expand Down

0 comments on commit 6f90c3c

Please sign in to comment.