modules.solvers.qaoa
Functions
|
Function to return the full QAOA circuit; depends on device as ZZ implementation depends on gate set of backend. |
|
Returns circuit for evolution with cost Hamiltonian. |
|
Returns circuit for driver Hamiltonian U(Hb, beta). |
|
Objective function takes a list of variational parameters as input, and returns the cost associated with those parameters. |
|
Function to run QAOA algorithm for given, fixed circuit depth p. |
|
Function that returns a circuit implementing exp(-i gamma Z_i Z_j) using CNOT gates if ZZ not supported. |
Classes
|
QAOA with some parts copied/derived from https://github.com/aws/amazon-braket-examples. |