Skip to content

Commit

Permalink
test_channel_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
purva-thakre committed Oct 30, 2023
1 parent 3ee28d5 commit 149e951
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion toqito/matrices/gell_mann.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import scipy


def gell_mann(ind: int, is_sparse: bool = False) -> np.ndarray | scipy.sparse.csr.csr_matrix:
def gell_mann(ind: int, is_sparse: bool = False) -> np.ndarray | scipy.sparse.csr_matrix:
r"""
Produce a Gell-Mann operator [WikGM]_.
Expand Down
2 changes: 1 addition & 1 deletion toqito/matrices/pauli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def pauli(
ind: int | str | list[int] | list[str], is_sparse: bool = False
) -> np.ndarray | sparse.csr.csr_matrix:
) -> np.ndarray | sparse.csr_matrix:
r"""
Produce a Pauli operator [WikPauli]_.
Expand Down
3 changes: 2 additions & 1 deletion toqito/perms/symmetric_projection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Symmetric projection operator."""
from itertools import permutations

import math
import numpy as np
import scipy

Expand Down Expand Up @@ -87,7 +88,7 @@ def symmetric_projection(
return np.eye(dim)

p_list = np.array(list(permutations(np.arange(1, p_val + 1))))
p_fac = np.math.factorial(p_val)
p_fac = math.factorial(p_val)
sym_proj = np.zeros((dimp, dimp))

for j in range(p_fac):
Expand Down

0 comments on commit 149e951

Please sign in to comment.