qiskit-documentation/docs/api/qiskit/0.44/qiskit.algorithms.optimizer...

34 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: AskData
description: API reference for qiskit.algorithms.optimizers.AskData
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.algorithms.optimizers.AskData
---
# AskData
<Class id="qiskit.algorithms.optimizers.AskData" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.25/qiskit/algorithms/optimizers/steppable_optimizer.py" signature="qiskit.algorithms.optimizers.AskData(x_fun=None, x_jac=None)" modifiers="class">
Bases: [`ABC`](https://docs.python.org/3/library/abc.html#abc.ABC "(in Python v3.12)")
Base class for return type of [`ask()`](qiskit.algorithms.optimizers.SteppableOptimizer#ask "qiskit.algorithms.optimizers.SteppableOptimizer.ask").
**Parameters**
* **x\_fun** (*POINT |* [*list*](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.12)")*\[POINT] | None*) Point or list of points where the function needs to be evaluated to compute the next
* **optimizer.** (*the next state of the*)
* **x\_jac** (*POINT |* [*list*](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.12)")*\[POINT] | None*) Point or list of points where the gradient/jacobian needs to be evaluated to compute
* **optimizer.**
## Attributes
### x\_fun
<Attribute id="qiskit.algorithms.optimizers.AskData.x_fun" attributeTypeHint="POINT | list[POINT] | None" attributeValue="None" />
### x\_jac
<Attribute id="qiskit.algorithms.optimizers.AskData.x_jac" attributeTypeHint="POINT | list[POINT] | None" attributeValue="None" />
</Class>