Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version.

qiskit.chemistry.drivers.HDF5Driver

class HDF5Driver(hdf5_input='molecule.hdf5')

GitHub

Qiskit chemistry driver reading an HDF5 file.

The HDF5 file is as saved from a QMolecule instance.

Parameters

hdf5_input (str) – Path to HDF5 file

__init__

__init__(hdf5_input='molecule.hdf5')

Parameters

hdf5_input (str) – Path to HDF5 file


Methods

__init__([hdf5_input])type hdf5_inputstr
run()Runs driver to produce a QMolecule output.

Attributes

basisreturn basis
hf_methodreturn Hartree-Fock method
moleculereturn molecule
supports_moleculeTrue for derived classes that support Molecule.
work_pathReturns work path.

basis

return basis

Return type

str

hf_method

return Hartree-Fock method

Return type

str

molecule

return molecule

Return type

Optional[Molecule]

run

run()

Runs driver to produce a QMolecule output.

Return type

QMolecule

Returns

A QMolecule containing the molecular data.

Raises

LookupError – file not found.

supports_molecule

True for derived classes that support Molecule.

Return type

bool

Returns

True if Molecule is supported.

work_path

Returns work path.

Was this page helpful?
Report a bug or request content on GitHub.