qml.qaoa.cycle¶
Functionality for finding the maximum weighted cycle of directed graphs.
Functions
|
Calculates the cycle-mixer Hamiltonian. |
|
Maps the edges of a graph to corresponding wires. |
|
Calculates the loss Hamiltonian for the maximum-weighted cycle problem. |
|
Calculates the net flow constraint Hamiltonian for the maximum-weighted cycle problem. |
|
Calculates the out flow constraint Hamiltonian for the maximum-weighted cycle problem. |
|
Maps the wires of a register of qubits to corresponding edges. |
code/api/pennylane.qaoa.cycle
Download Python script
Download Notebook
View on GitHub