Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

Error code 1217, Message: Reduce time between submitting subsequent jobs in a session

You need a premium account to use a session. If you don't have it, your jobs can be spaced by a long time and then the session is automatically closed.
Armand's user avatar
  • 1
1 vote

How to convert a combinatorial optimization problem into a problem hamiltonian

You can convert pyomo (an open-source Python library for defining and solving classical optimization problems) problems to Hamiltonian problems using Classiq. Check this user guide to see how to do it....
Ron Cohen's user avatar
  • 1,482
0 votes
Accepted

How to convert a combinatorial optimization problem into a problem hamiltonian

Qiskit Optimization has a QuadraticProgram object that can read_from_lp_file and can then be converted to_ising Hamiltonian. This LP file reading does need CPLEX installed, as the docs note, but if ...
Steve Wood's user avatar
  • 1,488
2 votes

How to convert a combinatorial optimization problem into a problem hamiltonian

This video tutorial is a very good starting point to the subject. Then you can go through the paper "Ising formulations of many NP problems" by Lucas for more advanced mappings.
Egretta.Thula's user avatar
0 votes
Accepted

How to correctly compute expectation value in QAOA?

My mistake is that I compute $x^T H_c x$ instead of $xh + x^T J x$, since if I put $h$ terms on the diagonal of $H_c$, all coefficients of $h_i$ would be equal to one regardless of $x_i=1$ or $x_i=-1$,...
Oleksii's user avatar
  • 21
1 vote

Solving optimization problems on real quantum hardware

Current quantum hardware based on a quantum circuit model has a limited number of qubits, which are prone to errors and decoherence. So, comparing solutions from classical solvers with those produced ...
MonteNero's user avatar
  • 2,666

Top 50 recent answers are included