Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples benchmarking different contractor settings provided by cotengra #212

Closed
refraction-ray opened this issue May 13, 2024 · 1 comment · Fixed by #219
Closed
Assignees
Labels
good first issue Good for newcomers

Comments

@refraction-ray
Copy link
Member

refraction-ray commented May 13, 2024

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

@refraction-ray refraction-ray added the good first issue Good for newcomers label May 13, 2024
@king-p3nguin
Copy link
Contributor

king-p3nguin commented May 31, 2024

Hi, I would like to work on this issue for unitaryhack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
2 participants