tensorcircuit icon indicating copy to clipboard operation
tensorcircuit copied to clipboard

QAOA block on weighted graph

Open refraction-ray opened this issue 3 years ago • 0 comments

Task description

Add weighted graph QAOA ansatz support for tc.templates.blocks.QAOA_block

Implementation

https://github.com/tencent-quantum-lab/tensorcircuit/blob/master/tensorcircuit/templates/blocks.py#L83 In this method, add graph edge weights in parameters.

Requirements

nxgraph package edge property

Difficulty: ★★

refraction-ray avatar Jul 12 '22 02:07 refraction-ray