check_equivalent_bloq_example_counts#
View source on GitHub
|
Check that the BloqExample has consistent bloq counts.
qualtran.testing.check_equivalent_bloq_example_counts(
bloq_ex: qualtran.BloqExample
) -> Tuple[qualtran.testing.BloqCheckResult, str]
Bloq counts can be annotated directly via the Bloq.build_call_graph override.
They can be inferred from a bloq’s decomposition. This function checks that both
data sources are present and that they produce the same values.
If both sources are present, and they disagree, that results in a FAIL. If only one source
is present, an UNVERIFIED result is returned. If neither are present, a MISSING result
is returned.
View source on GitHub