assert_equivalent_bloq_example_counts#
View source on GitHub
|
Assert that the BloqExample has consistent bloq counts.
qualtran.testing.assert_equivalent_bloq_example_counts(
bloq_ex: qualtran.BloqExample
) -> None
Bloq counts can be annotated directly via the Bloq.build_call_graph override.
They can be inferred from a bloq’s decomposition. This function asserts 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 exception is raised. If neither are present, a MISSING result
is raised.
View source on GitHub