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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file sabreMapper-0.1.0.tar.gz.

File metadata

  • Download URL: sabreMapper-0.1.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for sabreMapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4dc64da9c03048f23b02afe54f06e9b79d82ad3f016fe34b0ff6fa0ea6697e26
MD5 c155b11ff47947263ddc0b2afdfa7e87
BLAKE2b-256 b129a91e31cebb7466fc1ef8c4bc691cd2133e755935049619bccc99f15ca7c2

See more details on using hashes here.

File details

Details for the file sabreMapper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sabreMapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for sabreMapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53c32ea5ed8b49c8c7de55f62c0df562e06d4c729349eee21518dbf8506b1bba
MD5 685ebfb0100da605b29a9da8fbe8c98b
BLAKE2b-256 53df39123d869f283f40783b4533a600d771f3908f56375e27b15bfe6f9196e8

See more details on using hashes here.

Supported by

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