-
Notifications
You must be signed in to change notification settings - Fork 146
Add first version of the tutorial for solving the market split proble… #4118
New issue
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
base: main
Are you sure you want to change the base?
Conversation
…m using Iskay Quantum Optimizer Qiskit Function
|
Thanks for contributing to Qiskit documentation! Before your PR can be merged, it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. Thanks! 🙌 |
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick overall comments:
- let's follow the qiskit patterns for the steps. In my reading, your steps 1,2,3 are Step 1. in the qiskit pattern framework; your step 4 is Step 2,3 in the qiskit patterns; Step 5 and onwards are Step 4 in the qiskit patterns
- could you comment on why the brute force calculation takes less than any of the other methods?
- add the QPU usage (4s?) to the top of the notebook
- if this example takes so little qpu time but is still too easy for classical, can we go to a larger/more difficult example?
|
Hi! The lint check is failing because the title and description are missing from the metadata. Here are instructions for adding. |
|
Hi @murilo-kipu, just checking in to make sure we are on track. Please take a look at the comments from @miamico and @abbycross above when you have a moment. Thank you in advance ! cc: @pandasa123 |
Thanks for the review! I will first give a quick answer to each point raised:
|
|
One other question: Daniel Egger shared the link to this qiskit addon and I'm integrating it to the challenge notebook. Should I also do it in the tutorial notebook? This is compatible with the code I have there and would replace one of the functions I wrote, but I'm note sure if the addon it will released by the time you want to publish the tutorial. |
@murilo-kipu Thank you for bringing this up! I was able to connect with Daniel, and the timing works well. The PyPi release is coming out very soon (scheduled for next Monday, Nov 3rd), so please include the addon! cc: @pandasa123 |
…_mapper - Added imports for OptimizationProblem and OptimizationProblemToQubo. - Removed the custom marketsplit_to_qubo function and replaced it with the new optimization problem setup. - Converted the QUBO object to the Iskay format, including detailed output of the conversion process.
docs/tutorials/solve_market_split_problem_with_iskay_quantum_optimizer.ipynb
Outdated
Show resolved
Hide resolved
docs/tutorials/solve_market_split_problem_with_iskay_quantum_optimizer.ipynb
Outdated
Show resolved
Hide resolved
docs/tutorials/solve_market_split_problem_with_iskay_quantum_optimizer.ipynb
Outdated
Show resolved
Hide resolved
|
I've gotten the spelling and markdown checks to pass. You'll need to list the file in a couple other places in the repo so that it passes the other checks - see this section of the README for info on that. Thanks! |
Tutorial: Solving the market split problem with Iskay Quantum Optimizer
This is the first version of the tutorial related to the market split use case. It is close related to the challenge being developed for the QDC 2025.
In this tutorial we give a brief introduction and background to the market split problem, to the algorithm behind Kipu's Qiskit Function and show how the users can solve instances of that problem in IBM. We also go a little further and analyse the result and compare it to different (simple) classical solvers, and by the end, hopefully the users are able to apply this knowledge to solve larger and harder instances, or even different problems.
I haven't run the full notebook with the Qiskit function yet, but here is the current notebook structure:
Solve Market Split Problem
Introduction to the problem and Iskay optimizer.
Background
Overview of the Market Split problem, its formulation, and computational challenges.
Requirements
List of dependencies and setup instructions.
Setup
Import libraries and configure credentials.
Step 1: Connect to Iskay Quantum Optimizer
Establish connection to the optimizer.
Step 2: Load and Formulate the Problem
Load problem data and convert it to QUBO format.
Step 3: Understanding bf-DCQO Algorithm
Explanation of the quantum optimization algorithm.
Step 4: Configure and Run Optimization
Set up and execute the optimization process.
Step 5: Analyze Results
Validate and interpret the solution.
Step 6: Benchmark Against Classical Approaches
Compare quantum results with classical methods.
Comparison Results and Analysis
Evaluate solution quality and execution time.
Conclusion
Summary of findings and next steps.