Qiskit Aqua logo

Qiskit Aqua

Algorithms for quantum computing applications

About

Qiskit Aqua contains a library of cross-domain quantum algorithms upon which applications for near-term quantum computing can be built. Aqua is designed to be extensible, and employs a pluggable framework where quantum algorithms can easily be added. It currently allows the user to experiment on chemistry, AI, optimization and finance applications for near-term quantum computers.

Stack

  • Qiskit Aqua Translators

    Chemistry, AI, Optimization, Finance

  • Quantum Algorithms

    QPE, Grover, HHL, QSVM, VQE, QAOA, ...

  • Qiskit Terra

    Compile Circuits

  • Providers

    Qiskit Aer, IBM Quantum, Third Party

Example

from qiskit import Aer
from qiskit.aqua.components.oracles import LogicalExpressionOracle
from qiskit.aqua.algorithms import Grover

sat_cnf = """
c Example DIMACS 3-sat
p cnf 3 5
-1 -2 -3 0
1 -2 3 0
1 2 -3 0
1 -2 -3 0
-1 2 3 0
"""

backend = Aer.get_backend('qasm_simulator')
oracle = LogicalExpressionOracle(sat_cnf)
algorithm = Grover(oracle)
result = algorithm.run(backend)

print(result["result"])