CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ◌ Quantum Computing May 01, 2024

Solving optimization problems on real quantum hardware

Quantum Computing SE Archived Mar 16, 2026 ✓ Full text saved

I want to know how to solve a 01 Knapsack problem (or any optimization problem) on real Quantum Hardware only. I don't want to use an Application class or any classical simulation technique. If anyone has done it then please give me your code so that I can compare the solution time for classical and quantum solvers

Full text archived locally
✦ AI Summary · Claude Sonnet


    Solving optimization problems on real quantum hardware Ask Question Asked 1 year, 10 months ago Modified 6 days ago Viewed 426 times 0 I want to know how to solve a 01 Knapsack problem (or any optimization problem) on real Quantum Hardware only. I don't want to use an Application class or any classical simulation technique. If anyone has done it then please give me your code so that I can compare the solution time for classical and quantum solvers qiskitquantum-operationoptimizationqaoaresearch Share Improve this question Follow edited May 1, 2024 at 14:38 MonteNero 3,4228 8 silver badges 27 27 bronze badges asked May 1, 2024 at 11:53 Maths_hawk 634 4 bronze badges Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. –  Community Bot Commented May 1, 2024 at 15:44 Hi thanks for your response. I agree with you that DWave quantum annealers are good choice for optimization problem. And I run a KP problem on their Hybrid CQM solver.I found that though the solution quality is compromised but computational time is far better than Classical computers. So inorder to have better comparison I want to run KP problem on circuit based QC as well. I have some idea about QAOA but don't know how to implement them for my problem. If you know how to do that then please. –  Maths_hawk Commented May 2, 2024 at 17:22 Add a comment 2 Answers Sorted by: Highest score (default) Date modified (newest first) Date created (oldest first) 1 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 by quantum hardware is almost pointless at the moment. Classical solvers that run on classical hardware will always outperform their quantum counterparts by a very large margin, at least in the near future. If you still want to play with the real quantum hardware, then IBM has several publicly available backends where you can try running circuit-base quantum algorithms like QAOA or VQE. The QAOA and VQE codes are on their website. Another venue that is perhaps slightly more mature for optimization is D-Wave's quantum annealer. It can handle relatively large problems with moderate success. For example, here is the implementation of the KP problem from D-Wave's repo. A basic Google search will also show you a number of GitHub repos that implement KP problems for annealers and circuit-based quantum computers. Overall, I suggest reading basic information about the current state of quantum computers and quantum optimization before running any code. It is best to understand the most basic theory behind quantum algorithms before looking at the code. Share Improve this answer Follow answered May 1, 2024 at 14:56 MonteNero 3,4228 8 silver badges 27 27 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. https://quanfluence.com/time-multiplexed-coherent-ising-machine/ Yossi Share Improve this answer Follow answered Mar 10 at 13:20 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 qiskitquantum-operationoptimizationqaoaresearch 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 2 How to solve QUBO problems in Q#? 1 Solving a linear optimization problem with inequality constraints in qiskit? is it possible? 1 How to solve quadratic programming problems with continuous variables and continous constraints by using quantum algorithms? 1 How can I Combine Qiskit's VQE Tutorial and TSP Simulator to solve the TSP on a real backend efficiently? 3 How to convert a combinatorial optimization problem into a problem hamiltonian 4 Is QUBO formulation actually useful for solving real-world problems? 1 Solving a TSP using QAOA Hot Network Questions How many degrees is the sum of the marked angles? PI on medical leave: ethics and etiquette Trimming causes compilation failure In 1 Corinthians 7:8, does ἀγάμοις (agamois) refer to all unmarried people or specifically to widowers? About the Dwarapalakas of other deities For Pi Day, which expression is larger? Mirror stopped working Is this Time Walk spell well-balanced? Why do archaic colonial‑era laws remain in effect long after independence in many Asian and African countries? In what sense is the Axiom of Multiple Choice weaker than the Axiom of Choice? Pascal's Triangle ! Is this spell balanced by the consequence? Relation between sign of electrode potential and oxidising/reducing nature of species Use the main font in math mode (Roboto serif) How do I unlock LUKS encrypted Ubuntu 24.04 (ext4) using a USB drive? Do I top up the same amount of new engine oil as much as I drained the old one? Protecting peonies from late freeze apt-key is removed in Debian 13. How to list keys? How can I raise the handlebars on this bike? Typical length and structure of “selection criteria responses” in Australian academic job applications (math/statistics) Hard position for Stockfish to analyze Cockroach carrying a spy video camera in a movie? How can I stack multiple headphone jacks vertically? For small island states, would a few nukes be enough to serve as MAD nuclear deterrence? 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
    💬 Team Notes
    Article Info
    Source
    Quantum Computing SE
    Category
    ◌ Quantum Computing
    Published
    May 01, 2024
    Archived
    Mar 16, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗