Fixed for failing correlation function tests

When calling cython code for expectation values we assume that the sparse matrices are in CSR format, but applying the dag() operation changes the sparse data from CSR to CSC, so we need to explicitly cast to CSR.