qiskit.chemistry.drivers.FermionicDriver¶
-
class
FermionicDriver
(molecule=None, basis='sto3g', hf_method='rhf', supports_molecule=False)[source]¶ Base class for Qiskit’s chemistry fermionic drivers.
- Parameters
molecule (
Optional
[Molecule
]) – moleculebasis (
str
) – basis sethf_method (
str
) – Hartree-Fock Method typesupports_molecule (
bool
) – Indicates if driver supports molecule
- Raises
QiskitChemistryError – Molecule passed but driver doesn’t support it.
-
abstract
__init__
(molecule=None, basis='sto3g', hf_method='rhf', supports_molecule=False)¶ - Parameters
molecule (
Optional
[Molecule
]) – moleculebasis (
str
) – basis sethf_method (
str
) – Hartree-Fock Method typesupports_molecule (
bool
) – Indicates if driver supports molecule
- Raises
QiskitChemistryError – Molecule passed but driver doesn’t support it.
Methods
__init__
([molecule, basis, hf_method, …])- type molecule
Optional
[Molecule
]
run
()Runs driver to produce a QMolecule output.
Attributes
return basis
return Hartree-Fock method
return molecule
True for derived classes that support Molecule.
-
property
basis
¶ return basis
- Return type
str
-
property
hf_method
¶ return Hartree-Fock method
- Return type
str
-
property
molecule
¶ return molecule
- Return type
Optional
[Molecule
]
-
abstract
run
()[source]¶ Runs driver to produce a QMolecule output.
- Return type
QMolecule
- Returns
A QMolecule containing the molecular data.
-
property
supports_molecule
¶ True for derived classes that support Molecule.
- Return type
bool
- Returns
True if Molecule is supported.