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

Strange behavior of annealing time #234

Open
maqid opened this issue Jan 18, 2022 · 0 comments
Open

Strange behavior of annealing time #234

maqid opened this issue Jan 18, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@maqid
Copy link

maqid commented Jan 18, 2022

Describe the bug
When the same problem is annealed by different num_sweeps, even though num_sweep is set smaller, the annealing time may be long.

import openjij as oj

N = 30
h = {0: -10}
J = {(i, i+1): 1 for i in range(N-1)}

num_reads = 10

for num_sweeps in [25, 50]:
    sampler = oj.SASampler(num_sweeps=num_sweeps, num_reads=num_reads)
    response = sampler.sample_ising(h, J)
    t = response.info["execution_time"]
    print(f"t(num_sweeps={num_sweeps}) = {t}")

t(num_sweeps=25) = 88.32270978018641
t(num_sweeps=50) = 58.8218797929585

Expected behavior

  • t(num_sweeps=25) < t(num_sweeps=50)

Environment (please complete the following information):

  • OS: ubuntu18.04
  • Version python 3.9.6
@maqid maqid added the bug Something isn't working label Jan 18, 2022
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

1 participant