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.1.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.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quantum_parser-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 98a6b1fe46431dae02ba82fcc9760effe791bf82abee7674505226cc06ea0124
MD5 6867e4099c19e9af4730553bc6e93f0d
BLAKE2b-256 84a66ed02317a073e2d4cb30767fc5995d59332390bf61d9ef0760602a9f992a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantum_parser-1.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff44597ab793c97682efadfc52f91735950b8c3a6db83fa50bd41b5674126d7
MD5 e7142a8b371796c17ff125e6daa9c0e1
BLAKE2b-256 b92321301eefd5ee7d4a263dfaae81bfd6c7acb691523b2a0f03a83562244276

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