-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Yao
extension by properly transposing matrices
#212
Conversation
Also, @mofeing, what do you think about this |
mmm I'm not super convinced. the main reason is that when you mmm it might be a better idea to integrate the code of this function into a specialized function for converting an |
What would we gain with the result being |
This PR resolves #210 by transposing the matrices received from
Yao
. This has to be done, sinceYao
's conventions seem to be (outputs, inputs), rather than (inputs, outputs) that we usually do. See that this problem is now fixed:@amrFRE, see that here I computed some expectation values too.
Note that I used the function
find_permutation
to permute the result tensor so it follows the usual order (site1, site2, site3). @mofeing, shouldn't we add this function too? I think it makes sense, since if we want the state vector we should permute the tensor properly before the reshape.This is the function I used: