qrisp.t_depth_indicator#

t_depth_indicator(op, epsilon)[source]#

This function returns the T-depth of an Operation object.

According to this paper, the synthesis of an \(RZ(\phi)\) up to precision \(\epsilon\) requires \(3\text{log}_2(\frac{1}{\epsilon})\) T-gates.

Parameters
opOperation

The operation, whose T-depth should be estimated.

epsilonfloat

The precision of the RZ gate simulation.

Returns
float

The estimated T-depth of the Operation.