From 18e62ca09d254d8d5f391f96f4e166c0455c4f8e Mon Sep 17 00:00:00 2001 From: Charles Yuan Date: Tue, 30 Jul 2024 12:47:43 -0700 Subject: [PATCH] Remove redundant import_line from BloqDocSpec (#1214) --- qualtran/bloqs/basic_gates/identity.py | 6 +----- qualtran/bloqs/basic_gates/su2_rotation.py | 4 +--- qualtran/bloqs/basic_gates/swap.py | 6 +----- qualtran/bloqs/basic_gates/t_gate.py | 4 +--- qualtran/bloqs/basic_gates/toffoli.py | 6 +----- qualtran/bloqs/block_encoding/block_encoding_base.py | 4 +--- qualtran/bloqs/block_encoding/lcu_block_encoding.py | 11 +---------- qualtran/bloqs/block_encoding/linear_combination.py | 4 +--- qualtran/bloqs/block_encoding/phase.py | 6 +----- qualtran/bloqs/block_encoding/product.py | 1 - qualtran/bloqs/block_encoding/sparse_matrix.py | 1 - qualtran/bloqs/block_encoding/tensor_product.py | 1 - qualtran/bloqs/block_encoding/unitary.py | 4 +--- qualtran/bloqs/bookkeeping/auto_partition.py | 4 +--- .../hubbard_model/qubitization/prepare_hubbard.py | 6 +----- .../hubbard_model/qubitization/select_hubbard.py | 6 +----- .../projectile/select_and_prepare.py | 8 ++------ .../pbc/first_quantization/select_and_prepare.py | 8 ++------ qualtran/bloqs/mcmt/and_bloq.py | 10 ++-------- .../bloqs/mcmt/multi_control_multi_target_pauli.py | 12 ++---------- qualtran/bloqs/phase_estimation/text_book_qpe.py | 1 - .../bloqs/qubitization/qubitization_walk_operator.py | 4 +--- .../prepare_uniform_superposition.py | 4 +--- .../state_preparation_alias_sampling.py | 4 +--- qualtran/bloqs/swap_network/cswap_approx.py | 4 +--- qualtran/bloqs/swap_network/multiplexed_cswap.py | 6 +----- qualtran/bloqs/swap_network/swap_with_zero.py | 6 +----- 27 files changed, 27 insertions(+), 114 deletions(-) diff --git a/qualtran/bloqs/basic_gates/identity.py b/qualtran/bloqs/basic_gates/identity.py index 86f03ed1f..b9929789d 100644 --- a/qualtran/bloqs/basic_gates/identity.py +++ b/qualtran/bloqs/basic_gates/identity.py @@ -100,8 +100,4 @@ def _identity() -> Identity: return identity -_IDENTITY_DOC = BloqDocSpec( - bloq_cls=Identity, - import_line='from qualtran.bloqs.basic_gates import Identity', - examples=[_identity], -) +_IDENTITY_DOC = BloqDocSpec(bloq_cls=Identity, examples=[_identity]) diff --git a/qualtran/bloqs/basic_gates/su2_rotation.py b/qualtran/bloqs/basic_gates/su2_rotation.py index 071f75814..483494305 100644 --- a/qualtran/bloqs/basic_gates/su2_rotation.py +++ b/qualtran/bloqs/basic_gates/su2_rotation.py @@ -197,7 +197,5 @@ def _t_gate() -> SU2RotationGate: _SU2_ROTATION_GATE_DOC = BloqDocSpec( - bloq_cls=SU2RotationGate, - import_line='from qualtran.bloqs.basic_gates import SU2RotationGate', - examples=[_su2_rotation_gate, _hadamard, _t_gate], + bloq_cls=SU2RotationGate, examples=[_su2_rotation_gate, _hadamard, _t_gate] ) diff --git a/qualtran/bloqs/basic_gates/swap.py b/qualtran/bloqs/basic_gates/swap.py index 6cfa42eda..67ac4040f 100644 --- a/qualtran/bloqs/basic_gates/swap.py +++ b/qualtran/bloqs/basic_gates/swap.py @@ -350,8 +350,4 @@ def _cswap_large() -> CSwap: return cswap_large -_CSWAP_DOC = BloqDocSpec( - bloq_cls=CSwap, - import_line='from qualtran.bloqs.basic_gates import CSwap', - examples=(_cswap_symb, _cswap_small, _cswap_large), -) +_CSWAP_DOC = BloqDocSpec(bloq_cls=CSwap, examples=(_cswap_symb, _cswap_small, _cswap_large)) diff --git a/qualtran/bloqs/basic_gates/t_gate.py b/qualtran/bloqs/basic_gates/t_gate.py index b80f752ff..fee4f7d6b 100644 --- a/qualtran/bloqs/basic_gates/t_gate.py +++ b/qualtran/bloqs/basic_gates/t_gate.py @@ -117,6 +117,4 @@ def _t_gate() -> TGate: return t_gate -_T_GATE_DOC = BloqDocSpec( - bloq_cls=TGate, import_line='from qualtran.bloqs.basic_gates import TGate', examples=[_t_gate] -) +_T_GATE_DOC = BloqDocSpec(bloq_cls=TGate, examples=[_t_gate]) diff --git a/qualtran/bloqs/basic_gates/toffoli.py b/qualtran/bloqs/basic_gates/toffoli.py index 7c9d48fee..3418a4188 100644 --- a/qualtran/bloqs/basic_gates/toffoli.py +++ b/qualtran/bloqs/basic_gates/toffoli.py @@ -131,8 +131,4 @@ def _toffoli() -> Toffoli: return toffoli -_TOFFOLI_DOC = BloqDocSpec( - bloq_cls=Toffoli, - import_line='from qualtran.bloqs.basic_gates import Toffoli', - examples=[_toffoli], -) +_TOFFOLI_DOC = BloqDocSpec(bloq_cls=Toffoli, examples=[_toffoli]) diff --git a/qualtran/bloqs/block_encoding/block_encoding_base.py b/qualtran/bloqs/block_encoding/block_encoding_base.py index c1f99aa6b..639122c7b 100644 --- a/qualtran/bloqs/block_encoding/block_encoding_base.py +++ b/qualtran/bloqs/block_encoding/block_encoding_base.py @@ -115,7 +115,5 @@ def signal_state(self) -> PrepareOracle: _BLOCK_ENCODING_DOC = BloqDocSpec( - bloq_cls=BlockEncoding, # type: ignore[type-abstract] - import_line="from qualtran.bloqs.block_encoding import BlockEncoding", - examples=[], + bloq_cls=BlockEncoding, examples=[] # type: ignore[type-abstract] ) diff --git a/qualtran/bloqs/block_encoding/lcu_block_encoding.py b/qualtran/bloqs/block_encoding/lcu_block_encoding.py index fc940b14c..72553004a 100644 --- a/qualtran/bloqs/block_encoding/lcu_block_encoding.py +++ b/qualtran/bloqs/block_encoding/lcu_block_encoding.py @@ -450,20 +450,11 @@ def _black_box_lcu_zero_state_block() -> LCUBlockEncodingZeroState: return black_box_lcu_zero_state_block -_BLOCK_ENCODING_DOC = BloqDocSpec( - bloq_cls=BlockEncoding, # type: ignore[type-abstract] - import_line="from qualtran.bloqs.block_encoding import BlockEncoding", - examples=[], -) - _LCU_BLOCK_ENCODING_DOC = BloqDocSpec( - bloq_cls=LCUBlockEncoding, - import_line='from qualtran.bloqs.block_encoding import LCUBlockEncoding', - examples=(_lcu_block, _black_box_lcu_block), + bloq_cls=LCUBlockEncoding, examples=(_lcu_block, _black_box_lcu_block) ) _LCU_ZERO_STATE_BLOCK_ENCODING_DOC = BloqDocSpec( bloq_cls=LCUBlockEncodingZeroState, - import_line='from qualtran.bloqs.block_encoding import LCUBlockEncodingZeroState', examples=(_lcu_zero_state_block, _black_box_lcu_zero_state_block), ) diff --git a/qualtran/bloqs/block_encoding/linear_combination.py b/qualtran/bloqs/block_encoding/linear_combination.py index 8fcb52981..8bb06ca3f 100644 --- a/qualtran/bloqs/block_encoding/linear_combination.py +++ b/qualtran/bloqs/block_encoding/linear_combination.py @@ -348,7 +348,5 @@ def _linear_combination_block_encoding() -> LinearCombination: _LINEAR_COMBINATION_DOC = BloqDocSpec( - bloq_cls=LinearCombination, - import_line="from qualtran.bloqs.block_encoding import LinearCombination", - examples=[_linear_combination_block_encoding], + bloq_cls=LinearCombination, examples=[_linear_combination_block_encoding] ) diff --git a/qualtran/bloqs/block_encoding/phase.py b/qualtran/bloqs/block_encoding/phase.py index f572fc571..6f4eeb289 100644 --- a/qualtran/bloqs/block_encoding/phase.py +++ b/qualtran/bloqs/block_encoding/phase.py @@ -115,8 +115,4 @@ def _phase_block_encoding() -> Phase: return phase_block_encoding -_PHASE_DOC = BloqDocSpec( - bloq_cls=Phase, - import_line="from qualtran.bloqs.block_encoding import Phase", - examples=[_phase_block_encoding], -) +_PHASE_DOC = BloqDocSpec(bloq_cls=Phase, examples=[_phase_block_encoding]) diff --git a/qualtran/bloqs/block_encoding/product.py b/qualtran/bloqs/block_encoding/product.py index bbd7904e5..f4b40a2d3 100644 --- a/qualtran/bloqs/block_encoding/product.py +++ b/qualtran/bloqs/block_encoding/product.py @@ -264,7 +264,6 @@ def _product_block_encoding_symb() -> Product: _PRODUCT_DOC = BloqDocSpec( bloq_cls=Product, - import_line="from qualtran.bloqs.block_encoding import Product", examples=[ _product_block_encoding, _product_block_encoding_properties, diff --git a/qualtran/bloqs/block_encoding/sparse_matrix.py b/qualtran/bloqs/block_encoding/sparse_matrix.py index 1d205b382..6cafa2269 100644 --- a/qualtran/bloqs/block_encoding/sparse_matrix.py +++ b/qualtran/bloqs/block_encoding/sparse_matrix.py @@ -500,7 +500,6 @@ def _symmetric_banded_matrix_block_encoding() -> SparseMatrix: _SPARSE_MATRIX_DOC = BloqDocSpec( bloq_cls=SparseMatrix, - import_line="from qualtran.bloqs.block_encoding import SparseMatrix", examples=[ _sparse_matrix_block_encoding, _sparse_matrix_symb_block_encoding, diff --git a/qualtran/bloqs/block_encoding/tensor_product.py b/qualtran/bloqs/block_encoding/tensor_product.py index 8952340e7..f3bbc31fa 100644 --- a/qualtran/bloqs/block_encoding/tensor_product.py +++ b/qualtran/bloqs/block_encoding/tensor_product.py @@ -230,7 +230,6 @@ def _tensor_product_block_encoding_symb() -> TensorProduct: _TENSOR_PRODUCT_DOC = BloqDocSpec( bloq_cls=TensorProduct, - import_line="from qualtran.bloqs.block_encoding import TensorProduct", examples=[ _tensor_product_block_encoding, _tensor_product_block_encoding_properties, diff --git a/qualtran/bloqs/block_encoding/unitary.py b/qualtran/bloqs/block_encoding/unitary.py index 86bdc7df6..cb2fa8c32 100644 --- a/qualtran/bloqs/block_encoding/unitary.py +++ b/qualtran/bloqs/block_encoding/unitary.py @@ -135,7 +135,5 @@ def _unitary_block_encoding_properties() -> Unitary: _UNITARY_DOC = BloqDocSpec( - bloq_cls=Unitary, - import_line="from qualtran.bloqs.block_encoding import Unitary", - examples=[_unitary_block_encoding, _unitary_block_encoding_properties], + bloq_cls=Unitary, examples=[_unitary_block_encoding, _unitary_block_encoding_properties] ) diff --git a/qualtran/bloqs/bookkeeping/auto_partition.py b/qualtran/bloqs/bookkeeping/auto_partition.py index 5aafc97a4..252a3ce0f 100644 --- a/qualtran/bloqs/bookkeeping/auto_partition.py +++ b/qualtran/bloqs/bookkeeping/auto_partition.py @@ -173,7 +173,5 @@ def _auto_partition_unused() -> AutoPartition: _AUTO_PARTITION_DOC = BloqDocSpec( - bloq_cls=AutoPartition, - import_line="from qualtran.bloqs.bookkeeping import AutoPartition", - examples=[_auto_partition, _auto_partition_unused], + bloq_cls=AutoPartition, examples=[_auto_partition, _auto_partition_unused] ) diff --git a/qualtran/bloqs/chemistry/hubbard_model/qubitization/prepare_hubbard.py b/qualtran/bloqs/chemistry/hubbard_model/qubitization/prepare_hubbard.py index 83b8933ae..bb8c1eb5f 100644 --- a/qualtran/bloqs/chemistry/hubbard_model/qubitization/prepare_hubbard.py +++ b/qualtran/bloqs/chemistry/hubbard_model/qubitization/prepare_hubbard.py @@ -152,8 +152,4 @@ def _prep_hubb() -> PrepareHubbard: return prep_hubb -_PREPARE_HUBBARD = BloqDocSpec( - bloq_cls=PrepareHubbard, - import_line='from qualtran.bloqs.chemistry.hubbard_model.qubitization import PrepareHubbard', - examples=(_prep_hubb,), -) +_PREPARE_HUBBARD = BloqDocSpec(bloq_cls=PrepareHubbard, examples=(_prep_hubb,)) diff --git a/qualtran/bloqs/chemistry/hubbard_model/qubitization/select_hubbard.py b/qualtran/bloqs/chemistry/hubbard_model/qubitization/select_hubbard.py index 05d9c4ed1..ec5bd4e0a 100644 --- a/qualtran/bloqs/chemistry/hubbard_model/qubitization/select_hubbard.py +++ b/qualtran/bloqs/chemistry/hubbard_model/qubitization/select_hubbard.py @@ -197,8 +197,4 @@ def _sel_hubb() -> SelectHubbard: return sel_hubb -_SELECT_HUBBARD: BloqDocSpec = BloqDocSpec( - bloq_cls=SelectHubbard, - import_line='from qualtran.bloqs.chemistry.hubbard_model.qubitization import SelectHubbard', - examples=(_sel_hubb,), -) +_SELECT_HUBBARD: BloqDocSpec = BloqDocSpec(bloq_cls=SelectHubbard, examples=(_sel_hubb,)) diff --git a/qualtran/bloqs/chemistry/pbc/first_quantization/projectile/select_and_prepare.py b/qualtran/bloqs/chemistry/pbc/first_quantization/projectile/select_and_prepare.py index 3af1f1641..e4ba5a02e 100644 --- a/qualtran/bloqs/chemistry/pbc/first_quantization/projectile/select_and_prepare.py +++ b/qualtran/bloqs/chemistry/pbc/first_quantization/projectile/select_and_prepare.py @@ -604,13 +604,9 @@ def _sel_first_quant() -> SelectFirstQuantizationWithProj: _FIRST_QUANTIZED_WITH_PROJ_PREPARE_DOC = BloqDocSpec( - bloq_cls=PrepareFirstQuantizationWithProj, - import_line='from qualtran.bloqs.chemistry.pbc.first_quantization.projectile import PrepareFirstQuantizationWithProj', - examples=(_prep_first_quant,), + bloq_cls=PrepareFirstQuantizationWithProj, examples=(_prep_first_quant,) ) _FIRST_QUANTIZED_WITH_PROJ_SELECT_DOC = BloqDocSpec( - bloq_cls=SelectFirstQuantizationWithProj, - import_line='from qualtran.bloqs.chemistry.pbc.first_quantization.projectile import SelectFirstQuantizationWithProj', - examples=(_sel_first_quant,), + bloq_cls=SelectFirstQuantizationWithProj, examples=(_sel_first_quant,) ) diff --git a/qualtran/bloqs/chemistry/pbc/first_quantization/select_and_prepare.py b/qualtran/bloqs/chemistry/pbc/first_quantization/select_and_prepare.py index 7dd7d0c06..0fbad066b 100644 --- a/qualtran/bloqs/chemistry/pbc/first_quantization/select_and_prepare.py +++ b/qualtran/bloqs/chemistry/pbc/first_quantization/select_and_prepare.py @@ -544,13 +544,9 @@ def _sel_first_quant() -> SelectFirstQuantization: _FIRST_QUANTIZED_PREPARE_DOC = BloqDocSpec( - bloq_cls=PrepareFirstQuantization, - import_line='from qualtran.bloqs.chemistry.pbc.first_quantization import PrepareFirstQuantization', - examples=(_prep_first_quant,), + bloq_cls=PrepareFirstQuantization, examples=(_prep_first_quant,) ) _FIRST_QUANTIZED_SELECT_DOC = BloqDocSpec( - bloq_cls=SelectFirstQuantization, - import_line='from qualtran.bloqs.chemistry.pbc.first_quantization import SelectFirstQuantization', - examples=(_sel_first_quant,), + bloq_cls=SelectFirstQuantization, examples=(_sel_first_quant,) ) diff --git a/qualtran/bloqs/mcmt/and_bloq.py b/qualtran/bloqs/mcmt/and_bloq.py index 2836ae48e..35e8d4acb 100644 --- a/qualtran/bloqs/mcmt/and_bloq.py +++ b/qualtran/bloqs/mcmt/and_bloq.py @@ -223,9 +223,7 @@ def _and_bloq() -> And: return and_bloq -_AND_DOC = BloqDocSpec( - bloq_cls=And, import_line='from qualtran.bloqs.mcmt import And', examples=(_and_bloq,) -) +_AND_DOC = BloqDocSpec(bloq_cls=And, examples=(_and_bloq,)) def _to_tuple_or_has_length( @@ -372,8 +370,4 @@ def _multi_and_symb() -> MultiAnd: return multi_and_symb -_MULTI_AND_DOC = BloqDocSpec( - bloq_cls=MultiAnd, - import_line='from qualtran.bloqs.mcmt import MultiAnd', - examples=(_multi_and,), -) +_MULTI_AND_DOC = BloqDocSpec(bloq_cls=MultiAnd, examples=(_multi_and,)) diff --git a/qualtran/bloqs/mcmt/multi_control_multi_target_pauli.py b/qualtran/bloqs/mcmt/multi_control_multi_target_pauli.py index ef9e7832f..122a4172e 100644 --- a/qualtran/bloqs/mcmt/multi_control_multi_target_pauli.py +++ b/qualtran/bloqs/mcmt/multi_control_multi_target_pauli.py @@ -99,11 +99,7 @@ def _c_multi_not() -> MultiTargetCNOT: return c_multi_not -_C_MULTI_NOT_DOC = BloqDocSpec( - bloq_cls=MultiTargetCNOT, - import_line='from qualtran.bloqs.mcmt import MultiTargetCNOT', - examples=(_c_multi_not_symb, _c_multi_not), -) +_C_MULTI_NOT_DOC = BloqDocSpec(bloq_cls=MultiTargetCNOT, examples=(_c_multi_not_symb, _c_multi_not)) @frozen @@ -243,11 +239,7 @@ def _ccpauli_symb() -> MultiControlPauli: return ccpauli_symb -_CC_PAULI_DOC = BloqDocSpec( - bloq_cls=MultiControlPauli, - import_line='from qualtran.bloqs.mcmt import MultiControlPauli', - examples=(_ccpauli,), -) +_CC_PAULI_DOC = BloqDocSpec(bloq_cls=MultiControlPauli, examples=(_ccpauli,)) @frozen diff --git a/qualtran/bloqs/phase_estimation/text_book_qpe.py b/qualtran/bloqs/phase_estimation/text_book_qpe.py index 78f7ad16f..c55efac6d 100644 --- a/qualtran/bloqs/phase_estimation/text_book_qpe.py +++ b/qualtran/bloqs/phase_estimation/text_book_qpe.py @@ -290,7 +290,6 @@ def _textbook_qpe_from_standard_deviation_eps() -> TextbookQPE: _CC_TEXTBOOK_PHASE_ESTIMATION_DOC = BloqDocSpec( bloq_cls=TextbookQPE, - import_line='from qualtran.bloqs.phase_estimation import TextbookQPE', examples=( _textbook_qpe_small, _textbook_qpe_using_m_bits, diff --git a/qualtran/bloqs/qubitization/qubitization_walk_operator.py b/qualtran/bloqs/qubitization/qubitization_walk_operator.py index b574de10a..9e1786cad 100644 --- a/qualtran/bloqs/qubitization/qubitization_walk_operator.py +++ b/qualtran/bloqs/qubitization/qubitization_walk_operator.py @@ -204,7 +204,5 @@ def _walk_op_chem_sparse() -> QubitizationWalkOperator: _QUBITIZATION_WALK_DOC = BloqDocSpec( - bloq_cls=QubitizationWalkOperator, - import_line='from qualtran.bloqs.qubitization import QubitizationWalkOperator', - examples=(_walk_op, _thc_walk_op, _walk_op_chem_sparse), + bloq_cls=QubitizationWalkOperator, examples=(_walk_op, _thc_walk_op, _walk_op_chem_sparse) ) diff --git a/qualtran/bloqs/state_preparation/prepare_uniform_superposition.py b/qualtran/bloqs/state_preparation/prepare_uniform_superposition.py index d0236d36a..1c5cf3ec4 100644 --- a/qualtran/bloqs/state_preparation/prepare_uniform_superposition.py +++ b/qualtran/bloqs/state_preparation/prepare_uniform_superposition.py @@ -186,7 +186,5 @@ def _c_prep_uniform() -> PrepareUniformSuperposition: _PREP_UNIFORM_DOC = BloqDocSpec( - bloq_cls=PrepareUniformSuperposition, - import_line='from qualtran.bloqs.state_preparation import PrepareUniformSuperposition', - examples=(_prep_uniform, _c_prep_uniform), + bloq_cls=PrepareUniformSuperposition, examples=(_prep_uniform, _c_prep_uniform) ) diff --git a/qualtran/bloqs/state_preparation/state_preparation_alias_sampling.py b/qualtran/bloqs/state_preparation/state_preparation_alias_sampling.py index 838edafec..ceafcdfa4 100644 --- a/qualtran/bloqs/state_preparation/state_preparation_alias_sampling.py +++ b/qualtran/bloqs/state_preparation/state_preparation_alias_sampling.py @@ -283,9 +283,7 @@ def _state_prep_alias_symb() -> StatePreparationAliasSampling: _STATE_PREP_ALIAS_DOC = BloqDocSpec( - bloq_cls=StatePreparationAliasSampling, - import_line='from qualtran.bloqs.state_preparation import StatePreparationAliasSampling', - examples=(_state_prep_alias, _state_prep_alias_symb), + bloq_cls=StatePreparationAliasSampling, examples=(_state_prep_alias, _state_prep_alias_symb) ) diff --git a/qualtran/bloqs/swap_network/cswap_approx.py b/qualtran/bloqs/swap_network/cswap_approx.py index 91ef58367..3e5dcbdf5 100644 --- a/qualtran/bloqs/swap_network/cswap_approx.py +++ b/qualtran/bloqs/swap_network/cswap_approx.py @@ -145,7 +145,5 @@ def _approx_cswap_large() -> CSwapApprox: _APPROX_CSWAP_DOC = BloqDocSpec( - bloq_cls=CSwapApprox, - import_line='from qualtran.bloqs.swap_network import CSwapApprox', - examples=(_approx_cswap_symb, _approx_cswap_small, _approx_cswap_large), + bloq_cls=CSwapApprox, examples=(_approx_cswap_symb, _approx_cswap_small, _approx_cswap_large) ) diff --git a/qualtran/bloqs/swap_network/multiplexed_cswap.py b/qualtran/bloqs/swap_network/multiplexed_cswap.py index 7d3436973..9818fa143 100644 --- a/qualtran/bloqs/swap_network/multiplexed_cswap.py +++ b/qualtran/bloqs/swap_network/multiplexed_cswap.py @@ -121,8 +121,4 @@ def _multiplexed_cswap() -> MultiplexedCSwap: return multiplexed_cswap -_MULTIPLEXED_CSWAP_DOC = BloqDocSpec( - bloq_cls=MultiplexedCSwap, - import_line='from qualtran.bloqs.swap_network import MultiplexedCSwap', - examples=(_multiplexed_cswap,), -) +_MULTIPLEXED_CSWAP_DOC = BloqDocSpec(bloq_cls=MultiplexedCSwap, examples=(_multiplexed_cswap,)) diff --git a/qualtran/bloqs/swap_network/swap_with_zero.py b/qualtran/bloqs/swap_network/swap_with_zero.py index 112bd6e91..a4f7f6f9c 100644 --- a/qualtran/bloqs/swap_network/swap_with_zero.py +++ b/qualtran/bloqs/swap_network/swap_with_zero.py @@ -193,8 +193,4 @@ def _swz_multi_dimensional() -> SwapWithZero: return swz_multi_dimensional -_SWZ_DOC = BloqDocSpec( - bloq_cls=SwapWithZero, - import_line='from qualtran.bloqs.swap_network import SwapWithZero', - examples=(_swz, _swz_small, _swz_multi_dimensional), -) +_SWZ_DOC = BloqDocSpec(bloq_cls=SwapWithZero, examples=(_swz, _swz_small, _swz_multi_dimensional))