Flexible Type-Based Resource Estimation in Quantum Circuit Description Languages
<|reference_start|>Flexible Type-Based Resource Estimation in Quantum Circuit Description Languages: We introduce a type system for the Quipper language designed to derive upper bounds on the size of the circuits produced by the typed program. This size can be measured according to various metrics, including width, depth and gate count, but also variations thereof obtained by considering only some wire types or some gate kinds. The key ingredients for achieving this level of flexibility are effects and refinement types, both relying on indices, that is, generic arithmetic expressions whose operators are interpreted differently depending on the target metric. The approach is shown to be correct through logical predicates, under reasonable assumptions about the chosen resource metric. This approach is empirically evaluated through the QuRA tool, showing that, in many cases, inferring tight bounds is possible in a fully automatic way.<|reference_end|>
@article{colledan2024flexible,
    title={Flexible Type-Based Resource Estimation in Quantum Circuit Description
  Languages},
    author={Andrea Colledan and Ugo Dal Lago},
    journal={arXiv preprint arXiv:2408.03121},
    year={2024},
    archivePrefix={arXiv},
    eprint={2408.03121},
    primaryClass={cs.PL cs.CC cs.LO quant-ph}
}