refraction-ray · GitHub

Task description

Add an example script in /examples or a jupyter notebook in /docs/source/tutorials to demonstrate the usage of different cotengra optimizers and benchmark the performance metric (pathfinding time, and the metrics for the tensor contraction), specifically with the newly added SimulatedAnnealing optimizer in cotengra (accessed by opt = HyperOptimizer(simulated_annealing_opts={}), might try combination of different path finding strategy if allowed ).

Implementation

The contraction path finding can be evaluated on different circuit sets: random circuits, qft circuits tc.templates.blocks.qft, QAOA circuits on different types of graph instances (regular graph, all-to-all graph, grid graph...), etc.

Also note that the contraction metric can be directly obtained without any real computation by setting debug_level=2 for contractor setup in tc.

References

Read the original on github.com ↗