Skip to content

Commit 0ec2216

Browse files
new version of ci packages
1 parent 28bda81 commit 0ec2216

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

requirements/requirements-dev.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
mypy==1.2.0
1+
mypy==1.5.1
22
pytest==6.2.4
33
pytest-cov
44
pytest-benchmark
55
pytest-xdist
6-
black[jupyter]==23.3.0
6+
black[jupyter]
77
sphinx>=4.0
88
pytest-lazy-fixture
9-
pylint==2.11.1
10-
numpy==1.21.5
9+
pylint==2.17.5
1110
furo
1211
sphinx-copybutton
1312
nbsphinx

tensorcircuit/applications/optimization.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ def cvar_value(r: List[float], p: List[float], percent: float) -> float:
171171
:return: The calculated CVaR value.
172172
"""
173173
sorted_indices = np.argsort(r)
174-
p = np.array(p)[sorted_indices]
175-
r = np.array(r)[sorted_indices]
174+
p = np.array(p)[sorted_indices] # type: ignore
175+
r = np.array(r)[sorted_indices] # type: ignore
176176

177177
sump = 0.0 # The sum of probabilities.
178178
count = 0

tensorcircuit/translation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def qir2cirq(
125125
support more element in qir, e.g. barrier, measure...
126126
"""
127127

128-
class CustomizedCirqGate(cirq.Gate):
128+
class CustomizedCirqGate(cirq.Gate): # type: ignore
129129
def __init__(self, uMatrix: Any, name: str, nqubit: int):
130130
super(CustomizedCirqGate, self)
131131
self.uMatrix = uMatrix

0 commit comments

Comments
 (0)