Skip to main content

A package parsing various quantum circuits.

Project description

Quantum Parser

This project provides modules for parsing quantum circuits.

Overview

  • qcis_parser: A parser for QCIS format, offering similar functionalities for a different quantum circuit representation.

  • qasm2_parser: A parser for OpenQASM 2.0 code, converting it into tokenized instructions and extracting circuit information.

Installation

Clone the repository and install the required dependencies using nix flake:

nix develop .

Usage

See APIs.

Features

QSIC Parser

  • Parses QSIC format circuits.
  • Provides a similar tokenization and analysis interface.

QASM2 Parser

  • Parses OpenQASM 2.0 code.
  • Extracts quantum operations into a token list.
  • Currently does not support classical operations or measurements.

Notes

  • Ensure that the input strings conform to the expected format for each parser.
  • The parsers are currently in development and may not support all features or operations.

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

quantum_parser-1.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

quantum_parser-1.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file quantum_parser-1.1.0.tar.gz.

File metadata

  • Download URL: quantum_parser-1.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for quantum_parser-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7e48a25f62b26e00dc26b8dcb4a36e3b8c58defaf55d6d10dfda9af464795612
MD5 7e34762c7d04aacff31033c6eda01313
BLAKE2b-256 58d1cdc7f914d95652c4361772db7da42497033860d54faa5439786994a5bb2d

See more details on using hashes here.

File details

Details for the file quantum_parser-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: quantum_parser-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for quantum_parser-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8df5deb5a93e7337dba52ab83104c0d349974d4d26473102476eca86d5d3a31e
MD5 17a501e7c84d4e9bae12e1da24d4c5ca
BLAKE2b-256 7355e2dbba5d5b1b2534897bbc9d9a0ccc0d5dac9c042c8e4da4c3a9023a394d

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