Skip to main content

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


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)

Uploaded Source

Built Distribution

sabreMapper-0.1.0-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page