IS my QUBO too big for QAOA using IBM Quantum computer?
Quantum Computing SEArchived Mar 16, 2026✓ Full text saved
On qiskit, I have defined a QUBO, called qp as follows: print(qp.prettyprint()) Minimize -1.7324559764718837*x10^2 + 0.00619189721450626*x10*x11 ... + 3.6972673229589947*x27*x29 - 32.42658793825545*x28^2 + 7.39453464591802*x28*x29 - 61.155908553552145*x29^2 Subject to No constraints Binary variables (20) x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 There are actually 104 lines in the minimization problem. Using a classical solver, I can easily solve this proble
Full text archived locally
✦ AI Summary· Claude Sonnet
IS my QUBO too big for QAOA using IBM Quantum computer?
Ask Question
Asked 2 years, 8 months ago
Modified 6 days ago
Viewed 226 times
1
On qiskit, I have defined a QUBO, called qp as follows:
print(qp.prettyprint())
Minimize
-1.7324559764718837*x10^2 + 0.00619189721450626*x10*x11
...
+ 3.6972673229589947*x27*x29 - 32.42658793825545*x28^2
+ 7.39453464591802*x28*x29 - 61.155908553552145*x29^2
Subject to
No constraints
Binary variables (20)
x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29
There are actually 104 lines in the minimization problem.
Using a classical solver, I can easily solve this problem:
cplex_optimizer = CplexOptimizer()
qubo_minimization_result = cplex_optimizer.solve(qp)
This gives me:
print("minimum point (binary): ", qubo_minimization_result.x)
minimum point (binary): [0. 0. 0. 0. 1. 0. 0. 0. 0. 1. 0. 1. 1. 1. 0. 1. 1. 1. 1. 0.]
I want now to solve it using QAOA on a IBM quantum computer (QC). But before doing it on a real QC, I would like to solve it using a IBM simulator ibmq_qasm_simulator:
# Select a backend.
backend = provider.get_backend("ibmq_qasm_simulator")
# QAOA parameters
number_of_shots = 100000
qaoa_reps = 1
# Betas and Gammas as described in the original QAOA paper
betas = [0]
gammas = [0]
algorithm_globals.random_seed = 10598
quantum_instance = QuantumInstance(
backend,
seed_simulator=algorithm_globals.random_seed,
seed_transpiler=algorithm_globals.random_seed,
shots=number_of_shots)
qaoa_mes = QAOA(quantum_instance=quantum_instance, reps=qaoa_reps, initial_point=[*betas, *gammas])
qaoa = MinimumEigenOptimizer(qaoa_mes) # using QAOA
qaoa_result = qaoa.solve(qp)
When I run this qiskit code, I never obtain a result in the sense that the code is running but never stops. Do you think my QUBO is too big for solving it on a 32-qubits IBM simulator? Should I try directly on a real 127-qubits QC?
qiskitibm-q-experienceqaoa
Share
Improve this question
Follow
asked Jun 26, 2023 at 8:57
Stéphane
1137
7 bronze badges
Add a comment
2 Answers
Sorted by:
Highest score (default)
Date modified (newest first)
Date created (oldest first)
0
I think the circuit might be too large. Simulating wide and deep circuits can be extremely demanding. You could try using the AerSimulator with method="matrix_product_state" to improve performance — see the Qiskit documentation here.
If you want to include realistic noise effects, you can also add a noise_model to emulate a real device — more details here.
Share
Improve this answer
Follow
answered Oct 7, 2025 at 8:47
kernel123
976
6 bronze badges
Add a comment
0
There is a new class of Solver- Ising Machines that are available for solving large optimization problems of QUBO nature, 100K variable class. The Quanfluence Coherent Ising Machine is quantum inspired using optic components and FPGA, can give a highly reliable solution and 10-100X faster than classical computers. This machine can be access remotely over the AWS cloud. Quanfluence will provide their SDK and programs written in other environments can also be executed. https://quanfluence.com/time-multiplexed-coherent-ising-machine/
Yossi
Share
Improve this answer
Follow
answered Mar 10 at 13:25
Yossi Yehiel
1
New contributor
Add a comment
Your Answer
Sign up or log in
Sign up using Google
Sign up using Email and Password
Post as a guest
Name
Email
Required, but never shown
Post Your Answer
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Ask question
Explore related questions
qiskitibm-q-experienceqaoa
See similar questions with these tags.
The Overflow Blog
Open source for awkward robots
Domain expertise still wanted: the latest trends in AI-assisted knowledge for...
Featured on Meta
Logo updates to Stack Overflow's visual identity
Related
4
API error when trying to access IBM Quantum Computer using IBMQ API Token
2
IBM Qiskit QAOA gate implementation question
4
Statevector Simulation of QAOA always finds exact solution
4
TranspilerError: 'The input circuit None is not scheduled'
1
QAOA MaxCut IBM Qiskit Example
0
Finding the minimum cut using QAOA
1
Mapping a QUBO onto an observable for use with Qiskit QAOA
2
How to apply the QAOA in such a QUBO problem?
Hot Network Questions
Does this article misapply a result in mathematical logic?
Are AA batteries sold in the EU required to have a CE certification?
PI on medical leave: ethics and etiquette
What is Tsp when looking at MOSFET specifications?
How can a "new" superposition state be prepared?
The essence of ZFC
How do we know individual quarks don't carry all three color charges?
Verifying Wood's Theorem on Homotopy Groups
My basic budget tracker
Frequency response (-3db factor)
Will modeling frameworks like JuMP become the dominant interface for complex algorithmic research?
How can I improve this drywall patch?
Why were two different Hebrew words used for "first" in Genesis 8:13?
How to measure a year without relying on the Earth's tilted axis?
Wrap bracelets around a cube
Definition of n-huge cardinals in Harvey Friedman's works
Why do archaic colonial‑era laws remain in effect long after independence in many Asian and African countries?
apt-key is removed in Debian 13. How to list keys?
What does "Probability content" of an interval mean?
About claims and evidence
Mirror stopped working
In what sense is the Axiom of Multiple Choice weaker than the Axiom of Choice?
How random is RandomInteger[{0,B}]?
How can I raise the handlebars on this bike?
Question feed
By continuing to use this website, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. By exiting this window, default cookies will be accepted. To reject cookies, select an option from below.
Customize settings
Cookie Consent Preference Center
When you visit any of our websites, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences, or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and manage your preferences. Please note, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Cookie Policy
Accept all cookies
Manage Consent Preferences
Strictly Necessary Cookies
Always Active
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
Targeting Cookies
Targeting Cookies
These cookies are used to make advertising messages more relevant to you and may be set through our site by us or by our advertising partners. They may be used to build a profile of your interests and show you relevant advertising on our site or on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device.
Performance Cookies
Performance Cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
Functional Cookies
Functional Cookies
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Cookie List
Clear
checkbox label label
Apply Cancel
Consent Leg.Interest
checkbox label label
checkbox label label
checkbox label label
Necessary cookies only Confirm My Choices