Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default black lines #17

Merged
merged 3 commits into from
May 16, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
python -m pip install .
- name: Check for black formatting
uses: psf/black@stable
Expand Down
2 changes: 2 additions & 0 deletions ionizer/identity_hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def lookup_gate_identity(gates):
"Currently only 2- and 3-gate circuit identities on GPI/GPI2 gates are supported."
)

gate_identities = {}

if len(gates) == 2:
try:
with DOUBLE_IDENTITY_FILE.open("rb") as infile:
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tool.black]
line-length = 100
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pylint==3.1
pytest==8.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="Ionizer",
version="0.2",
version="0.3",
description="PennyLane tools for compilation into trapped-ion native gates.",
author="UBC Quantum Software and Algorithms Research Group",
url="https://github.com/QSAR-UBC/ionizer",
Expand Down