2020from attr import field , frozen
2121from numpy .typing import NDArray
2222
23- from qualtran import BloqBuilder , QAny , Signature , Soquet , SoquetT
23+ from qualtran import BloqBuilder , Signature , Soquet , SoquetT
2424from qualtran .bloqs .basic_gates import Hadamard , Identity , IntEffect , IntState , XGate
2525from qualtran .bloqs .block_encoding import BlockEncoding , Unitary
2626from qualtran .bloqs .block_encoding .chebyshev_polynomial import (
@@ -200,7 +200,7 @@ def signature(self) -> Signature:
200200
201201 @property
202202 def signal_state (self ) -> BlackBoxPrepare :
203- return BlackBoxPrepare (PrepareIdentity (( QAny ( 1 ),) ))
203+ return BlackBoxPrepare (PrepareIdentity . from_bitsizes ([ 1 ] ))
204204
205205 def build_composite_bloq (
206206 self , bb : BloqBuilder , system : Soquet , ancilla : Soquet , resource : Soquet
@@ -221,6 +221,7 @@ def test_chebyshev_matrix():
221221
222222def test_chebyshev_poly_signal_state ():
223223 assert isinstance (_chebyshev_poly_even ().signal_state .prepare , PrepareIdentity )
224+ _ = _chebyshev_poly_even ().signal_state .decompose_bloq ()
224225
225226
226227@pytest .mark .slow
0 commit comments