assert_soquets_used_exactly_once#
View source on GitHub
|
Check that all soquets are used once and only once.
qualtran.testing.assert_soquets_used_exactly_once(
cbloq: qualtran.CompositeBloq
)
Each bloq’s register produces prod(reg.shape) soquets which must be consumed once and only once.
View source on GitHub