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

Trouble with high sweep counts #4

Open
zmorrell opened this issue Aug 3, 2023 · 0 comments
Open

Trouble with high sweep counts #4

zmorrell opened this issue Aug 3, 2023 · 0 comments

Comments

@zmorrell
Copy link

zmorrell commented Aug 3, 2023

Hello,
Great package, I am very excited to work with it. I have been having some trouble using higher sweep counts (> ~2000). I have distilled the problem to a minimal example. I get a segmentation fault when I try to execute the following code:

from pysa.sa import Solver
import numpy as np

float_type = 'float32'
n_vars = 2 
problem = 2 * np.random.random((n_vars, n_vars)) - 1 
problem = (problem + problem.T) / 2 

solver = Solver(problem=problem, problem_type='ising', float_type=float_type)

solver.metropolis_update(num_sweeps = 2048)

I have done some initial testing and I can run up to 2033 sweeps without segmentation fault, though I don't know if this number is machine specific.

Is there something that I am doing wrong, or is there some limit on the number of sweeps?

Thank you in advance!

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

1 participant