Metadata-Version: 2.4
Name: qasm2python
Version: 0.1.1
Summary: Convert OpenQASM 3 to Python Qiskit code dynamically.
Author-email: Muyleang Ing <muyleanging@gmail.com>
Maintainer-email: Muyleang Ing <muyleanging@gmail.com>
License: MIT
Project-URL: Homepage, https://muyleanging.com
Project-URL: Repository, https://github.com/muyleanging/qasm2python
Project-URL: Documentation, https://github.com/muyleanging/qasm2python#readme
Project-URL: Issues, https://github.com/muyleanging/qasm2python/issues
Keywords: quantum,qiskit,openqasm,compiler,transpiler,quantum computing
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: qiskit>=0.45
Dynamic: license-file


# qasm2python

Convert OpenQASM 3 to Python Qiskit code.

## Install

```bash
pip install qasm2python
````

## Usage

```python
from qasm2python import convert_qasm

qasm = """
OPENQASM 3;
include "stdgates.inc";
qubit[2] q;
h q[0];
cx q[0], q[1];
"""

print(convert_qasm(qasm))
```



---

# 🔧 STEP 6 — Install Locally (Test Before Upload)

Inside project folder:

```

pip install build
python -m build

```

Then:

```

pip install dist/qasm2python-0.1.0-py3-none-any.whl

````

Test:

```python
from qasm2python import convert_qasm
````
