assert_wire_symbols_match_expected#
View source on GitHub
|
Assert a bloq’s wire symbols match the expected ones.
qualtran.testing.assert_wire_symbols_match_expected(
bloq: qualtran.Bloq,
expected_ws: List[Union[str, WireSymbol]]
)
For multi-dimensional registers (with a shape), this will iterate through the register indices (see numpy.ndindices for iteration order).
View source on GitHub