From d7a619450fbd4f69e82a9119e0e1bcf5eeb52cc7 Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Sun, 7 Apr 2024 12:14:47 +0200 Subject: [PATCH 1/2] Add distribution/packaging section to .gitignore. --- .gitignore | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 81ae3e0..894282c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,20 @@ -.idea -.ipynb_checkpoints -.venv -.vs -.vscode -__pycache__ +# Virtual environments +.venv/ + +# IDE configs +.idea/ +.vs/ +.vscode/ + +# Jupyter Notebook +.ipynb_checkpoints/ + +# Byte-compiled / optimized / DLL files +__pycache__/ + +# Distribution / packaging +dist/ +*.egg-info/ + +# Submodules benchmarking/QASMBench From fa708c30abf7c1cfad686d567c2710fcf948af61 Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Sun, 7 Apr 2024 12:15:19 +0200 Subject: [PATCH 2/2] Create PyPi package. --- pyproject.toml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..bcf0b0a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,43 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "qiskit-zx-transpiler" +version = "0.0.1" +description = "A transpiler pass for Qiskit which uses ZX-Calculus for circuit optimization, implemented using PyZX." +requires-python = ">=3.8" +license = {text = "Apache 2.0"} +readme = "README.md" +authors = [ + { name = "David Yonge-Mallo", email = "dlyongemallo@users.noreply.github.com" }, +] +keywords = [ + "qiskit", + "zx-calculus", + "quantum circuit optimization", + "quantum computing", +] +classifiers = [ + "Intended Audience :: Science/Research", + "License :: OSI Approved :: Apache Software License", + "Operating System :: MacOS", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Scientific/Engineering", +] + +[project.urls] +Homepage = "https://github.com/dlyongemallo/qiskit-zx-transpiler" +Repository = "https://github.com/dlyongemallo/qiskit-zx-transpiler" +Issues = "https://github.com/dlyongemallo/qiskit-zx-transpiler/issues" + +[tool.setuptools.packages.find] +include = ["zxpass"] +