wy_qcos.transpiler.cmss.mapping package
Subpackages
- wy_qcos.transpiler.cmss.mapping.aggregate package
- wy_qcos.transpiler.cmss.mapping.init_mapping package
- Submodules
- wy_qcos.transpiler.cmss.mapping.init_mapping.sabre_mapping module
- wy_qcos.transpiler.cmss.mapping.init_mapping.sc_initial_mapping module
- wy_qcos.transpiler.cmss.mapping.init_mapping.simulated_annealing module
- wy_qcos.transpiler.cmss.mapping.init_mapping.subgraph_isomorphism module
- Module contents
- wy_qcos.transpiler.cmss.mapping.na package
- wy_qcos.transpiler.cmss.mapping.routing package
- wy_qcos.transpiler.cmss.mapping.utils package
- Submodules
- wy_qcos.transpiler.cmss.mapping.utils.dg module
- wy_qcos.transpiler.cmss.mapping.utils.dg_swap_opt module
- wy_qcos.transpiler.cmss.mapping.utils.estimate module
- wy_qcos.transpiler.cmss.mapping.utils.front_circuit module
- wy_qcos.transpiler.cmss.mapping.utils.sabre_utils module
- Module contents
Submodules
wy_qcos.transpiler.cmss.mapping.empty_mapping module
- class wy_qcos.transpiler.cmss.mapping.empty_mapping.EmptyRoute
基类:
object
wy_qcos.transpiler.cmss.mapping.mapping_factory module
- class wy_qcos.transpiler.cmss.mapping.mapping_factory.MappingFactory
基类:
objectGet Transpiler via Type.
- get_mapper_by_type(tech_type, na_support_move, na_mapping_type)
Get mapper by type.
- 参数:
tech_type (str) -- tech type
na_support_move (bool) -- Does NA support move and cz gate
na_mapping_type (str) -- NA mapping algorithms type
- 返回:
mapper
wy_qcos.transpiler.cmss.mapping.sc_mapping module
- class wy_qcos.transpiler.cmss.mapping.sc_mapping.SCRoute
基类:
ABC超导设备路由映射类.
实现逻辑量子比特到物理量子比特的映射,支持单比特门和两比特门的路由。
- DEFAULT_SC_MAPPING_OPTIONS = {'mode_sim': ['fix_cx_num', [50, 10]], 'routing_algorithm': 'mct', 'sabre_decay': 0.001, 'sabre_extension_size': 20, 'sabre_weight': 0.5, 'score_decay_rate_depth': 0.85, 'score_decay_rate_size': 0.7, 'score_layer': 5, 'select_mode': ['KS', 15], 'use_hash': 1, 'use_prune': 1}
- set_sc_mapping_options(options)
设置 sc_mapping 配置选项.
- 参数:
options (dict) -- sc_mapping 配置选项字典
- prepare_data(qbit_num, gates, qpu_configs)
准备数据,包括构建AG、DG等.
- 参数:
qbit_num (int) -- 比特数
gates (list[BaseOperation]) -- 门列表
qpu_configs (dict) -- 拓扑配置
- execute_with_order()
执行映射,返回映射后的门列表.
- 返回:
映射后的门列表(mapped_ir)