From 6f90c3c5cb535044c83b711567426e858325d91e Mon Sep 17 00:00:00 2001 From: a_corni Date: Tue, 17 Dec 2024 14:56:48 +0100 Subject: [PATCH] Convert initial state to CSR --- pulser-simulation/pulser_simulation/simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulser-simulation/pulser_simulation/simulation.py b/pulser-simulation/pulser_simulation/simulation.py index 043d0539..653ef20d 100644 --- a/pulser-simulation/pulser_simulation/simulation.py +++ b/pulser-simulation/pulser_simulation/simulation.py @@ -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: