Added the function mpsmpo.mpo_to_pmps() for rank-1 MPOs#52
Added the function mpsmpo.mpo_to_pmps() for rank-1 MPOs#52MoritzLange wants to merge 6 commits intodsuess:masterfrom
Conversation
according to the discussion on the last commit.
according to the discussion on the last commit.
2 similar comments
|
Anything new here? |
|
I'm in contact with Milan and this is being worked on (slowly but steadily :) ). The current state: I'm afraid I'm unable to write the test for this (due to a mixture of lack of time and lack of experience), but this should be a useful extension of your code, so I decided to post a pull request anyway. About the failing Travis CI build, that seems to have nothing to do with the changes I made (together with Milan). I'm a bit unsure about that. The build for Python 3.5 is failing, in particular one test about it. It throws an error about mpnum.factory.random_mpa, which I didn't even touch. |
|
Don't worry about the failing tests. I'll have a look. Regarding tests: What do you think about testing whether |
|
I have thought of testing |
|
No worries, looks good so far. I think we can't really get around tests depending on other parts working correctly. As long as our test-dependency is not circular, I don't mind. The alternative would be to check local tensors by hand, which is much more prone to error. I'll have a look at the test. |
Said function was added in collaboration with Milan. It is used in the tests in my py-tedopa program. Apart from that only two checks in mpsmpo.py were improved by adding error messages (also in collaboration with Milan). I was unfortunately not able to write a test for the mpo_to_pmps().