We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When we try to convert Ising Hamiltonian which has only linear term to QRAO Hamiltonian, it gives ValueError The error message is as below.
ValueError: max() arg is an empty sequence
ising = IsingModel({}, {0:1.0,1:1.0,2: 5.0, 3: 2.0}, 6.0) max_color_group_size = 3 _, color_group = greedy_graph_coloring( ising.quad.keys(), max_color_group_size=max_color_group_size ) color_group = check_linear_term( color_group, ising.linear.keys(), max_color_group_size ) qrac_hamiltonian, offset, encoding = jtqp.qrao.qrac31_encode_ising( ising, color_group )
The text was updated successfully, but these errors were encountered:
Merge pull request #36 from Jij-Inc/hot_fix/no_quad_term
8bcd73a
fix the issues #35
This issue is fixed at #36.
Sorry, something went wrong.
Jacomichi
No branches or pull requests
What is problem
When we try to convert Ising Hamiltonian which has only linear term to QRAO Hamiltonian, it gives ValueError
The error message is as below.
ValueError: max() arg is an empty sequence
How to reproduce
The text was updated successfully, but these errors were encountered: