Skip to content
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

Complex Weights Not Properly Saved in Network Checkpoints #56

Open
tobiaswiener opened this issue Jun 13, 2023 · 1 comment
Open

Complex Weights Not Properly Saved in Network Checkpoints #56

tobiaswiener opened this issue Jun 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@tobiaswiener
Copy link

I have come across an issue where complex weights in network checkpoints are not being saved properly. Currently, only the real parts of the complex numbers are saved and the imaginary parts are discarded. This behavior was encountered when using the write_network_checkpoint method of the OutputManager class.

@laurinbrunner laurinbrunner added the bug Something isn't working label Jun 13, 2023
@markusschmitt
Copy link
Owner

Do you use a line like

outp.write_network_checkpoint(t, psi.get_parameters())

to write the checkpoints?

If yes, psi.get_parameters() returns a list where the real and imaginary parts of the parameters are concatinated, i.e., you will get a list of real numbers also for complex-valued parameters. Can you check whether this is what happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants