Adrian Roman
Adrian Roman
The copying between tensors and matrices could be improved using 'slice' and/or 'chip'.
For tensor->matrix conversion, here is a way: https://stackoverflow.com/questions/48795789/eigen-unsupported-tensor-to-eigen-matrix
TensorMap could be used in a less generic way than used in the link above, if needed.
Another thing that could be used to improve the speed: use multithreading. Eigen tensors have support for 'thread pools', for example one can do a contraction using multiple threads. See...
Making those values non-static is not that easy, since there are a lot of static calls in the `MPS_Tensor` class. A solution would be to store the values elsewhere and...
I planned to do that, I just need to find the time... I'll try to do it this weekend.
The pressure is not computed by the code, but pressure can be computed starting from density (which is computed and displayed in this project). See for example this for some...
Wait a little bit, I think I fixed it... I'll commit something and then add a comment on what I did.
A quick and dirty fix. I just modified `MPS::get_amplitude_vector` by calling another function for reordering: ``` uint_t actual_base_value = reorder_qubits_rev(qubit_ordering_.order_, base_values[i]); ``` Then I added that function simply by copying...
Simply altering the original function isn't going to work since that is used elsewhere, too, and it will break some other things.