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

Time Complexity w.r.t. Waveguide Size #54

Open
phantomlsh opened this issue Nov 6, 2024 · 2 comments
Open

Time Complexity w.r.t. Waveguide Size #54

phantomlsh opened this issue Nov 6, 2024 · 2 comments

Comments

@phantomlsh
Copy link
Contributor

Hi,

Would you share the expected/estimated time complexity with respect to the waveguide size? It seemed to be pretty significant when I tried to increase the number of points in the waveguide, both in the time evolution and in the expect_waveguide

Thank you very much!

@mabuni1998
Copy link
Collaborator

Hmmm can you provide some of the code that you are considering right now? Maybe I can help figure out if it is intended or whether some tricks can be done. The only benchmark I currently have is the following, where I solve the twophoton scattering problem with an increasing number of time-bins.

lazy_bench.pdf

@phantomlsh
Copy link
Contributor Author

Oh, I am just wondering about the theoretical time complexity of the simulation. For example, simulating a Cavity(2-level) - Waveguide(N bins) - Cavity(2-level) for M time ticks, assuming that the whole system contains 2 excitations (eg. both cavities starts in an excited state and waveguide is zero photons).

Is the time complexity in the linear form O(NM), or is that some non-linear power law or exponential? Also, could you estimate the space complexity (memory usage)? That will be extremely helpful, too.

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants