We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d14b0 commit bc071caCopy full SHA for bc071ca
qiskit_algorithms/variational_algorithm.py
@@ -1,6 +1,6 @@
1
# This code is part of a Qiskit project.
2
#
3
-# (C) Copyright IBM 2019, 2023.
+# (C) Copyright IBM 2019, 2025.
4
5
# This code is licensed under the Apache License, Version 2.0. You may
6
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -91,7 +91,7 @@ def optimal_value(self) -> float | None:
91
return self._optimal_value
92
93
@optimal_value.setter
94
- def optimal_value(self, value: int) -> None:
+ def optimal_value(self, value: float) -> None:
95
"""Sets optimal value"""
96
self._optimal_value = value
97
0 commit comments