Qiskit Sabre Mapper
Project description
qiskit_sabre_mapper
Description
A quantum program mapping and routing algorithm based on the open source code of the SABRE algorithm of Qiskit.
Installation
pip install sabreMapper
Usage
from sabreMapper.sabre_mapper import SabreMapper
mapper = SabreMapper()
success = mapper.map_schedule(origin_qasm_fn, chip_info_fn, mapped_qasm_fn, qubit_mapping_fn)
Interface Description
Input parameters
- origin_qasm_fn: This is a file path name, which corresponds to the quantum program file (such as Oenqasm 2.0 format file) before mapping and routing.
- chip_info_fn: This is a file path name, which corresponds to a configuration file that describes the information of the quantum chip (such as a configuration file in JSON format).
- mapped_qasm_fn:This is a file path name, and the file corresponding to the path is the quantum program file after mapping and routing.
- qubit_mapping_fn: This is a file path name, and the file corresponding to the path stores information such as the result of the qubit mapping information.
Output parameters
- success: The parameter type is 'bool'. If this parameter is true, it means that the quantum program has successfully completed the mapping and is dispatched, and if it is false or null, it means that the mapping and routing of quantum program failed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sabreMapper-0.1.0.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for sabreMapper-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53c32ea5ed8b49c8c7de55f62c0df562e06d4c729349eee21518dbf8506b1bba |
|
MD5 | 685ebfb0100da605b29a9da8fbe8c98b |
|
BLAKE2b-256 | 53df39123d869f283f40783b4533a600d771f3908f56375e27b15bfe6f9196e8 |