qml.transforms.reduce_t_depth¶
- reduce_t_depth(qnode)[source]¶
A quantum compilation pass that reduces the depth and count of non-Clifford Pauli product rotation (PPR, \(P(\theta) = \exp(-iP\theta)\)) operators (e.g.,
Tgates) by commuting PPRs in adjacent layers and merging compatible ones (a layer comprises PPRs that mutually commute). For more details, see Figure 6 of A Game of Surface Codes.
code/api/pennylane.transforms.reduce_t_depth
Download Python script
Download Notebook
View on GitHub