assert_valid_bloq_decomposition#
View source on GitHub
|
Check the validity of a bloq decomposition.
qualtran.testing.assert_valid_bloq_decomposition(
bloq: Optional[qualtran.Bloq]
) -> qualtran.CompositeBloq
Importantly, this does not do any correctness checking – for that you likely need to use the simulation utilities provided by the library.
This returns the decomposed, composite bloq on which you can do further testing.
View source on GitHub