Conclusion
We have shown how we take a QUBO formulation of a real-world problem, in this case, a Knapsack problem, and expand the terms to derive our BQM matrix. The matrix can then be sent to the quantum annealer or to a gate-based quantum computer for optimization. You may now return to Chapter 11, Single-Objective Optimization Use Cases and continue to review how matrix Mf is used in finding the solutions for the Knapsack problem.