Skip to content

Commit

Permalink
🎨 pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 11, 2025
1 parent 656eaaf commit 7b53c37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 7b53c37

Please sign in to comment.