TComplexity#
qualtran.cirq_interop.t_complexity_protocol.TComplexity
View source on GitHub
|
Dataclass storing counts of logical T-gates, Clifford gates and single qubit rotations.
qualtran.cirq_interop.t_complexity_protocol.TComplexity(
t=attr_dict['t'].default,
clifford=attr_dict['clifford'].default,
rotations=attr_dict['rotations'].default
)
Attributes
Methods#
rotation_cost
@staticmethodrotation_cost( eps:qualtran.symbolics.SymbolicFloat) ->qualtran.symbolics.SymbolicFloat
t_incl_rotations
t_incl_rotations(
eps: float = 1e-11
) -> qualtran.symbolics.SymbolicInt
Return the total number of T gates after compiling rotations
__add__
__add__(
other: 'TComplexity'
) -> 'TComplexity'
__mul__
__mul__(
other: int
) -> 'TComplexity'
__rmul__
__rmul__(
other: int
) -> 'TComplexity'
asdict
asdict()
__ne__
__ne__(
other
)
Check equality and either forward a NotImplemented or return the result negated.
__eq__
__eq__(
other
)
Method generated by attrs for class TComplexity.
View source on GitHub