quantumlib / Qualtran

Qᴜᴀʟᴛʀᴀɴ is a Python library for expressing and analyzing Fault Tolerant Quantum algorithms.
https://qualtran.readthedocs.io/en/latest/
Apache License 2.0
168 stars 40 forks source link

Migrate t_complexity to `QECGatesCost` cost key #1251

Open mpharrigan opened 1 month ago

mpharrigan commented 1 month ago

With the goal of #539 there are now two built-in ways of counting gates: one where you have to provide which gates to count and another, more-opinionated one that makes some assumptions about the relevant counts for a surface code / lattice surgery / qec execution model. This latter one is QECGatesCost and is similar to the t_complexity protocol. These two protocols should be unified.

mpharrigan commented 2 weeks ago

https://github.com/quantumlib/Qualtran/pull/1359 makes the default go via QECGateCost