qml.data.list_datasets¶
- list_datasets()[source]¶
Returns a dictionary of the available datasets.
- Returns
Nested dictionary representing the directory structure of the hosted datasets.
- Return type
dict
See also
Example:
Note that the results of calling this function may differ from this example as more datasets are added. For updates on available data see the datasets website.
>>> available_data = qml.data.list_datasets() >>> available_data.keys() dict_keys(["qspin", "qchem"]) >>> available_data["qchem"].keys() dict_keys(["H2", "LiH", ...]) >>> available_data['qchem']['H2'].keys() dict_keys(["CC-PVDZ", "6-31G", "STO-3G"]) >>> print(available_data['qchem']['H2']['STO-3G']) ["0.5", "0.54", "0.62", "0.66", ...]
Note that this example limits the results of the function calls for clarity and that as more data becomes available, the results of these function calls will change.
code/api/pennylane.data.list_datasets
Download Python script
Download Notebook
View on GitHub