Closed Misty-W closed 4 months ago
The function of the variable threshold_distance
is to set a distance such that the interaction between a qubit and its neighbours that are closer than that distance is ignored. Sometimes, however, no interaction has to be ignored, and in this case threshold_distance
should be the smallest possible distance.
The issue was solved in #84 by initializing threshold_distance
with the smallest distance with:
threshold_distances[i] = distances[i][-1][1]
The remaining code will modify this value if a different threshold is needed, otherwise it will leave it unchanged.
Same solution as #82.
When I run the automated script with each of the three cases in https://github.com/unitaryfund/aquapointer/pull/78#issuecomment-2195124326, etc, I get the following error:
Originally I'd thought this was related to the
force_lattice_size
error, but it seems different. From what I can tell, the update tocalculate_detunings
in #81 didn't account for the possibility thatthreshold_distances
could be empty at line 701. I could just fix it as suggested below but wanted to check first if there's a reasonthreshold_distances
should not be empty by line 701, which would indicate another problem.Suggested solution: Replace
threshold_distances = {}
with