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

⬆️🪝 Update pre-commit hook astral-sh/ruff-pre-commit to v0.9.1 #357

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ repos:

# Python linting and formatting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
6 changes: 3 additions & 3 deletions src/mqt/qecc/circuit_synthesis/synthesis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def heuristic_gaussian_elimination(
matrix: The matrix to perform Gaussian elimination on.
parallel_elimination: Whether to prioritize elimination steps that act on disjoint columns.

returns:
Returns:
The reduced matrix and a list of the elimination steps taken. The elimination steps are represented as tuples of the form (i, j) where i is the column being eliminated with and j is the column being eliminated.
"""
matrix = matrix.copy()
Expand Down Expand Up @@ -166,7 +166,7 @@ def gaussian_elimination_min_column_ops(
termination_criteria: A function that takes a boolean matrix as input and returns a Z3 boolean expression that is true if the matrix is considered reduced.
max_eliminations: The maximum number of eliminations to perform.

returns:
Returns:
The reduced matrix and a list of the elimination steps taken. The elimination steps are represented as tuples of the form (i, j) where i is the column being eliminated with and j is the column being eliminated.
"""
n = matrix.shape[1]
Expand Down Expand Up @@ -235,7 +235,7 @@ def gaussian_elimination_min_parallel_eliminations(
termination_criteria: A function that takes a boolean matrix as input and returns a Z3 boolean expression that is true if the matrix is considered reduced.
max_parallel_steps: The maximum number of parallel elimination steps to perform.

returns:
Returns:
The reduced matrix and a list of the elimination steps taken. The elimination steps are represented as tuples of the form (i, j) where i is the column being eliminated with and j is the column being eliminated.
"""
columns = np.array([
Expand Down
2 changes: 1 addition & 1 deletion test/python/circuit_synthesis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_stabs_css(qc: QuantumCircuit) -> tuple[npt.NDArray[np.int_], npt.NDArray
Args:
qc: The quantum circuit.

returns:
Returns:
x: The X stabilizers.
z: The Z stabilizers.

Expand Down
Loading