Performance

This document shows some basic things you can do to improve the performance of your circuit.

Here are some quick tips to reduce the execution time of your circuit:

  • Reduce the amount of table lookups in the circuit.

  • Try different implementation strategies for complex operations.

  • Utilize rounding and truncating if your application doesn't require precise execution.

  • Use tensors as much as possible in your circuits.

  • Enable dataflow parallelization, by setting dataflow_parallelize=True in the configuration.

  • Tweak p_error configuration option until you get optimal exactness vs performance tradeoff for your application.

  • Specify composition when using modules.

You can refer to our full Optimization Guide for detailed examples of how to do each of these, and more!

Last updated