Quantum Computing, Qiskit, Quantum, Quantum Optimization, Quantum Physics.
print("QRAO Approximate Optimal Function Value:", results.fval) print("Exact Optimal Function Value:", exact_result.fval) print(f"Approximation Ratio: {results.fval / exact_result.fval :.2f}") QRAO Approximate Optimal Function Value: 4.0 Exact Optimal Function Value: 9.0 Approximation Ratio: 0.44