artificial-scientist-lab / PyTheus

PyTheus, a highly-efficient inverse-design algorithm for quantum optical experiments
MIT License
36 stars 5 forks source link

example never converging? #34

Open jsenellart opened 1 year ago

jsenellart commented 1 year ago

Hello,

I am trying to run the following example out of the bow:

pytheus run --example cnot22_sp

It has been running for almost one week (on modern Apple M1 computer) - with the following message in loop:

10 invalid preoptimization, consider changing parameters.
INFO:pytheus.optimizer:10 invalid preoptimization, consider changing parameters.
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt
INFO:pytheus.optimizer:begin preopt
INFO:pytheus.optimizer:end preopt

is it expected?

Thanks in advance!

cruizgo commented 1 year ago

Hi!

We have to update the README.md but the best way to replicate our solutions is to explore the folder pytheus/graphs which includes all the experiments and plots from our paper. Once you find the corresponding config file you can run it as follows: pytheus run pytheus/graphs/Gates/cnot22_sp/config_cnot22_sp.json

Sorry for the confusion and let us know if you have further questions.