t_complexity_compat#
View source on GitHub
|
Returns the TComplexity of a bloq or some Cirq objects.
qualtran.cirq_interop.t_complexity_protocol.t_complexity_compat(
stc: Any
) -> qualtran.cirq_interop.t_complexity_protocol.TComplexity
The main t_complexity function now expects a Bloq. Historically, there were strategies
to derive t complexities from other container classes (cirq.Circuit, cirq.Moment) and
gates/operations.
View source on GitHub