LucaYoy / Many-quantum-bodies-using-quantum-computing

Masters Dissertation
6 stars 0 forks source link

update optimise code #19

Closed LucaYoy closed 1 year ago

LucaYoy commented 1 year ago
LucaYoy commented 1 year ago

@as2457 Does the random matrix which perturbs the identity when constructing the initial gates have to be unitary/real/complex ? I left it as a random unitary but im not sure if that's fine.

LucaYoy commented 1 year ago

@as2457 @NicholasSynesi

Note to self to remember to discuss it in meeting

AdamSmith-physics commented 1 year ago

@LucaYoy The random matrix is not so important, it is just to get away from identity. Personally, I would set it as a general complex matrix sampled from a normal distribution. Making this Hermitian and then exponentiating ensures the final matrix will be unitary.

@LucaYoy @NicholasSynesi, instead of raising an error when the overlap decreases, you might have to change it to an decrease of more than say 10^(-12). I agree that this is probably just numerical precision from staying at the same point.

You could also add a minimum number of steps. I think this will take quite a large number of iterations to converge properly. For some tests, you might want to remove all stopping criteria and just run all iterations to see what's happening. Analysis of the optimisation procedure could definitely end up being it's own chapter in your thesis.

AdamSmith-physics commented 1 year ago

Also note, if you save the gates to file, then you should be able to continue the optimisation process without restarting if necessary.

In our next meeting we can come up for a plan to properly investigate the optimisation.