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.0.0.tar.gz (7.6 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.0.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quantum_parser-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 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.0.0.tar.gz
Algorithm Hash digest
SHA256 6093fe6b83551843f29e89c448830b892d0ce92d84114d3f94d882c73727d81e
MD5 a7f0da2eb11a56fe37031f4ed578b30f
BLAKE2b-256 268164cae8ad7ec85205f61fb434873cb4e6acec370b6b0bdb39d41628f87726

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantum_parser-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba256f99a1c4d2640a51d1f0bd11620eba90ea725014faf067a6e441f7e8b8e1
MD5 c8d4421e6021d6ede244aaa1ab446780
BLAKE2b-256 a23ed46911415f03b836fa221ab30725e59cb1e44fdeed30b2421ace088e0b7f

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