Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 0 additions & 73 deletions .github/workflows/logo-check.yml

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Types of changes:
### Improved / Modified
- Moved the `visit_map` from the `visit_statement` function to a class level variable for improved efficiency. ([#279](https://github.com/qBraid/pyqasm/pull/279))
- Added SVG light and dark mode versions of PyQASM logo, with and without text, and added dynamic logo mode to `README.md` based on color palette used on user-side. ([#288](https://github.com/qBraid/pyqasm/pull/288))
- Updated docs with new logo, added v2 links, and applied minor Python formatting fixes for style consistency. ([#289](https://github.com/qBraid/pyqasm/pull/289))

### Deprecated

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pyqasm

<p align="left">
<img src="docs/_static/pyqasm-light.svg#gh-light-mode-only" width="500" alt="PyQASM Logo (Light Mode)">
<img src="docs/_static/pyqasm-dark.svg#gh-dark-mode-only" width="500" alt="PyQASM Logo (Dark Mode)">
Expand All @@ -15,7 +13,9 @@

Python toolkit providing an OpenQASM 3 semantic analyzer and utilities for program analysis and compilation.

[![Env Badge](https://img.shields.io/endpoint?url=https://api.qbraid.com/api/environments/valid?envSlug=pyqasm_l9qauu&label=Launch+on+qBraid&labelColor=lightgrey&logo=rocket&logoSize=auto&style=for-the-badge)](http://account.qbraid.com?gitHubUrl=https://github.com/qBraid/pyqasm.git&envId=pyqasm_l9qauu)
<!--
[![Env Badge](https://img.shields.io/endpoint?url=https://api.qbraid.com/api/environments/valid?envSlug=pyqasm_l9qauu&label=Launch+on+qBraid&labelColor=lightgrey&logo=rocket&logoSize=auto&style=for-the-badge)](https://account.qbraid.com/explore/projects/pyqasm)
-->

## Motivation
[OpenQASM](https://openqasm.com/) is a powerful language for expressing hybrid quantum-classical programs, but it lacks a comprehensive tool supporting the _full capabilities of the language_. PyQASM aims to fill this gap by building upon the [`openqasm3.parser`](https://github.com/openqasm/openqasm/blob/ast-py/v1.0.1/source/openqasm/openqasm3/parser.py), and providing support for semantic analysis and utilities for program compilation.
Expand Down Expand Up @@ -85,10 +85,10 @@ PyQASM offers robust support for the **extensive grammar of OpenQASM 3**, includ
- Quantum-classical interaction (`measurement`, `reset`, etc.)
- Inclusion of standard libraries (`stdgates.inc`, etc.)

- **[Unrolling](https://docs.qbraid.com/pyqasm/user-guide/examples#inlining-%26-unrolling):**
- **[Unrolling](https://docs.qbraid.com/v2/pyqasm/user-guide/examples#inlining-%26-unrolling):**
Expands all custom gates, loops, subroutines, branches, etc. into a flat, hardware-ready sequence of instructions.

- **[Validation](https://docs.qbraid.com/pyqasm/user-guide/overview#the-qasmmodule-object):**
- **[Validation](https://docs.qbraid.com/v2/pyqasm/user-guide/overview#the-qasmmodule-object):**
Performs semantic analysis to ensure programs are correct and conform to the OpenQASM 3 specification.

---
Expand Down
1 change: 1 addition & 0 deletions bin/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Script to bump the major, minor, or patch version in pyproject.toml.

"""

import pathlib
import sys

Expand Down
1 change: 1 addition & 0 deletions bin/stamp_pre_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Script for getting/bumping the next pre-release version.

"""

import pathlib
import sys

Expand Down
136 changes: 0 additions & 136 deletions docs/_static/pyqasm.svg

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# -- Project information -----------------------------------------------------

project = "qBraid"
copyright = "2025, qBraid Development Team"
copyright = "2026, qBraid Development Team"
author = "qBraid Development Team"

# The full version, including alpha/beta/rc tags
Expand Down
17 changes: 11 additions & 6 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@
</style>
</head>
<body>
<h1 style="text-align: center">
<img src="_static/pyqasm.svg" alt="pyqasm logo" style="width:60px;height:60px;">
<span style="color:#808080"> PyQASM</span>
<h1 style="text-align: center; margin-top: 0; margin-bottom: 0.25em; padding-top: 0.5em; padding-bottom: 0.5em">
<img src="_static/pyqasm-light.svg" alt="pyqasm logo" style="width:280px;height:auto;max-width:min(280px, 50vw);">
</h1>
<p style="text-align:center;font-style:italic;color:#808080">
Python toolkit for OpenQASM program analysis and compilation.
<p style="text-align:center;font-style:italic;color:#808080; margin-top: 0; margin-bottom: 0.5em">
Python toolkit for OpenQASM program analysis and compilation.
</p>
</body>
</html>
Expand Down Expand Up @@ -154,7 +153,7 @@ Example
Resources
----------

- `User Guide <https://docs.qbraid.com/pyqasm/user-guide>`_
- `User Guide <https://docs.qbraid.com/v2/pyqasm/user-guide>`_
- `Example Usage <https://github.com/qBraid/pyqasm/tree/main/examples>`_
- `Source Code <https://github.com/qBraid/pyqasm>`_

Expand Down Expand Up @@ -193,3 +192,9 @@ Resources
:hidden:

api/pyqasm

.. toctree::
:caption: ALGOS API Reference
:hidden:

qbraid_algorithms <https://qbraid.github.io/qbraid-algorithms/api/qbraid_algorithms.html>
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
Expand Down
1 change: 1 addition & 0 deletions src/pyqasm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
QasmParsingError

"""

import warnings
from importlib.metadata import version

Expand Down
1 change: 1 addition & 0 deletions src/pyqasm/_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Module defining logging configuration for PyQASM.

"""

import logging

# Define a custom logger for the module
Expand Down
1 change: 1 addition & 0 deletions src/pyqasm/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Module with analysis functions for QASM visitor

"""

from __future__ import annotations

import re
Expand Down
1 change: 1 addition & 0 deletions src/pyqasm/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Module defining Qasm Converter elements.

"""

from dataclasses import dataclass
from enum import Enum
from typing import Any, Optional
Expand Down
1 change: 1 addition & 0 deletions src/pyqasm/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Top-level entrypoint functions for pyqasm.

"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions src/pyqasm/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Module containing the class for evaluating QASM expressions.

"""

from openqasm3.ast import (
AngleType,
BinaryExpression,
Expand Down
1 change: 1 addition & 0 deletions src/pyqasm/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
Module for linear algebra functions necessary for gate decomposition.

"""

from __future__ import annotations

import cmath
Expand Down
1 change: 1 addition & 0 deletions src/pyqasm/maps/decomposition_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""
Definition of the decomposition rules for the gates in the basis sets.
"""

from enum import Enum

from pyqasm.elements import BasisSet
Expand Down
1 change: 0 additions & 1 deletion src/pyqasm/maps/gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

"""


from typing import Callable

import numpy as np
Expand Down
Loading