,s3,s4,s5,s6 = Spin("s1"), Spin("s2"), Spin("s3"), Spin("s4"),Spin("s5"), Spin("s6")
H = (3*s1 + 1*s2...(qubo)
{('s3', 's5'): 16.0,
('s1', 's6'): 24.0,
('s4', 's6'): 16.0,
('s1', 's3'): 24.0,
('s2', 's5...'): 16.0,
('s6', 's6'): -36.0,
('s2', 's3'): 8.0,
('s2', 's4'): 16.0,
('s1', 's5'): 48.0,
('s3',...'s4'): 16.0,
('s1', 's2'): 24.0,
('s3', 's3'): -36.0,
('s2', 's6'): 8.0,
('s1', 's4'): 48.0,
('...': 1, 's5': 1, 's1': 0, 's4': 1, 's2': 0}
即为:
分组为{'s6': 0, 's1': 0, 's2': 0}为一组,{'s3': 1, 's5': 1, 's4