Skip to content

Commit

Permalink
Add Spanish to language switcher (backport #434) (#435)
Browse files Browse the repository at this point in the history
* Add Spanish to language switcher (#434)

(cherry picked from commit 3dfa511)

* Fixed mypy latest release errors (#419)

* Call base init on VQEClient (#420)

Co-authored-by: Soolu Thomas <soolu.elto@gmail.com>
Co-authored-by: Manoel Marques <Manoel.Marques@ibm.com>
  • Loading branch information
3 people committed Nov 10, 2022
1 parent bed46a4 commit 0cc437f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/versionutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
("en", "English"),
("bn_BN", "Bengali"),
("ja_JP", "Japanese"),
("es_UN", "Spanish"),
]

default_language = "en"
Expand Down
4 changes: 4 additions & 0 deletions qiskit_optimization/runtime/vqe_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


from typing import List, Callable, Optional, Any, Dict, Union
import warnings
import numpy as np

from qiskit import QuantumCircuit
Expand Down Expand Up @@ -67,6 +68,9 @@ def __init__(
store_intermediate: Whether or not to store intermediate values of the optimization
steps. Per default False.
"""
with warnings.catch_warnings():
warnings.simplefilter("ignore")
super().__init__()
if optimizer is None:
optimizer = SPSA(maxiter=300)

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sphinxcontrib-spelling
jupyter-sphinx
discover
qiskit-aer
mypy>=0.780
mypy>=0.981
mypy-extensions>=0.4.3
nbsphinx
qiskit_sphinx_theme
6 changes: 3 additions & 3 deletions test/test_deprecation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
# (C) Copyright IBM 2021, 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
Expand Down Expand Up @@ -126,13 +126,13 @@ def __init__(self):
# Bug in mypy, if property decorator is used with another one
# https://github.com/python/mypy/issues/1362

@property # type: ignore
@property
@deprecate_property("0.1.0")
def property1(self) -> int:
"""property1 get"""
return self._value

@property1.setter # type: ignore
@property1.setter
@deprecate_property(
"0.1.0", new_name="new_property", additional_msg="and some additional information"
)
Expand Down

0 comments on commit 0cc437f

Please sign in to comment.