Skip to content

Commit

Permalink
Merge pull request #253 from randomir/bugfix-reverse-annealing-tests
Browse files Browse the repository at this point in the history
Bugfix: typo in reverse annealing tests
  • Loading branch information
randomir committed Sep 21, 2018
2 parents d7b3a96 + ad9a6fe commit a3280e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ def test_reverse_annealing_off_vartype(self):
# ising state, qubo problem
initial_state_ising = {v: 2*bool(v % 3)-1 for v in active}
Q = {(v, v): 1 for v in active}
fq = solver.sample_qubo(Q, anneal_schedule=anneal_schedule, initial_state=initial_state)
fq = solver.sample_qubo(Q, anneal_schedule=anneal_schedule, initial_state=initial_state_ising)

# qubo state, ising problem
initial_state_qubo = {v: bool(v % 3) for v in active}
h = {v: 1 for v in active}
J = {}
fi = solver.sample_ising(h, J, anneal_schedule=anneal_schedule, initial_state=initial_state)
fi = solver.sample_ising(h, J, anneal_schedule=anneal_schedule, initial_state=initial_state_qubo)

fq.samples
fi.samples
Expand Down

0 comments on commit a3280e7

Please sign in to comment.