qiskit-documentation/docs/api/qiskit/0.29/qiskit.chemistry.drivers.Ba...

74 lines
1.7 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: BaseDriver
description: API reference for qiskit.chemistry.drivers.BaseDriver
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.chemistry.drivers.BaseDriver
---
# BaseDriver
<Class id="qiskit.chemistry.drivers.BaseDriver" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/chemistry/drivers/base_driver.py" signature="BaseDriver(molecule=None, basis='sto3g', hf_method='rhf', supports_molecule=False)" modifiers="class">
Bases: `abc.ABC`
Base class for Qiskits chemistry drivers.
**Parameters**
* **molecule** (`Optional`\[`Molecule`]) molecule
* **basis** (`str`) basis set
* **hf\_method** (`str`) Hartree-Fock Method type
* **supports\_molecule** (`bool`) Indicates if driver supports molecule
**Raises**
[**QiskitChemistryError**](qiskit.chemistry.QiskitChemistryError "qiskit.chemistry.QiskitChemistryError") Molecule passed but driver doesnt support it.
## Attributes
### basis
<Attribute id="qiskit.chemistry.drivers.BaseDriver.basis">
return basis
**Return type**
`str`
</Attribute>
### hf\_method
<Attribute id="qiskit.chemistry.drivers.BaseDriver.hf_method">
return Hartree-Fock method
**Return type**
`str`
</Attribute>
### molecule
<Attribute id="qiskit.chemistry.drivers.BaseDriver.molecule">
return molecule
**Return type**
`Optional`\[`Molecule`]
</Attribute>
### supports\_molecule
<Attribute id="qiskit.chemistry.drivers.BaseDriver.supports_molecule">
True for derived classes that support Molecule.
**Return type**
`bool`
**Returns**
True if Molecule is supported.
</Attribute>
</Class>