Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 3 new columns ({'atom_i', 'bond_order', 'atom_j'}) and 6 missing columns ({'charge', 'y', 'atom_idx', 'element', 'x', 'z'}).

This happened while the csv dataset builder was generating data using

hf://datasets/taradutt007/symqm3k/mayer_bond_orders.csv (at revision 58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1), [/tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/atom_details_final.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/atom_details_final.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/mayer_bond_orders.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/mayer_bond_orders.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/mayer_valence.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/mayer_valence.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/molecule_metadata.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/molecule_metadata.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/orbital_profile_final.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/orbital_profile_final.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/splits.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/splits.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/target_summary_final.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/target_summary_final.csv)]

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1893, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              qm9_id: int64
              atom_i: int64
              atom_j: int64
              bond_order: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 711
              to
              {'qm9_id': Value('int64'), 'atom_idx': Value('int64'), 'element': Value('string'), 'x': Value('float64'), 'y': Value('float64'), 'z': Value('float64'), 'charge': Value('float64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1895, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 3 new columns ({'atom_i', 'bond_order', 'atom_j'}) and 6 missing columns ({'charge', 'y', 'atom_idx', 'element', 'x', 'z'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/taradutt007/symqm3k/mayer_bond_orders.csv (at revision 58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1), [/tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/atom_details_final.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/atom_details_final.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/mayer_bond_orders.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/mayer_bond_orders.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/mayer_valence.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/mayer_valence.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/molecule_metadata.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/molecule_metadata.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/orbital_profile_final.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/orbital_profile_final.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/splits.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/splits.csv), /tmp/hf-datasets-cache/medium/datasets/24657939254377-config-parquet-and-info-taradutt007-symqm3k-ee6b9e42/hub/datasets--taradutt007--symqm3k/snapshots/58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/target_summary_final.csv (origin=hf://datasets/taradutt007/symqm3k@58bc4e4dd93e55875d9d6d0ac008fc2fef4e0cd1/target_summary_final.csv)]
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

qm9_id
int64
atom_idx
int64
element
string
x
float64
y
float64
z
float64
charge
float64
6,233
0
C
-0.6158
1.4171
0.1765
-0.461443
6,233
1
C
-0.0136
0.0251
-0.009
0.123179
6,233
2
C
-1.0599
-0.8948
-0.6511
-0.463817
6,233
3
C
1.3377
-0.0578
-0.7839
-0.290014
6,233
4
C
1.8489
-1.0938
0.248
-0.290014
6,233
5
C
0.7275
-0.6426
1.2341
0.123179
6,233
6
C
1.2713
0.3858
2.234
-0.463817
6,233
7
C
-0.0025
-1.7469
1.9972
-0.461443
6,233
8
H
0.1021
2.1311
0.5881
0.139808
6,233
9
H
-0.9582
1.814
-0.7866
0.137771
6,233
10
H
-1.4851
1.3923
0.8449
0.136956
6,233
11
H
-1.397
-0.4676
-1.6026
0.138072
6,233
12
H
-0.6633
-1.892
-0.8649
0.139698
6,233
13
H
-1.9414
-1.0153
-0.0118
0.140484
6,233
14
H
1.2815
-0.3763
-1.8288
0.128522
6,233
15
H
1.8975
0.881
-0.7433
0.130783
6,233
16
H
1.7113
-2.1238
-0.0934
0.130783
6,233
17
H
2.879
-0.9856
0.5993
0.128522
6,233
18
H
1.8584
1.1706
1.7473
0.139698
6,233
19
H
0.4656
0.8706
2.7962
0.140484
6,233
20
H
1.9279
-0.1104
2.9579
0.138072
6,233
21
H
0.6717
-2.2155
2.7241
0.137771
6,233
22
H
-0.8579
-1.3496
2.5571
0.136956
6,233
23
H
-0.3722
-2.5361
1.3376
0.139808
106,459
0
C
0.4812
-0.7032
1.3047
-0.447698
106,459
1
C
0.0302
-0.0151
0.0119
-0.294863
106,459
2
C
0.8007
-0.4232
-1.2307
0.060576
106,459
3
C
2.3699
-0.3448
-1.3467
-0.272782
106,459
4
C
2.0971
-1.2759
-2.5736
-0.131763
106,459
5
C
0.9725
-1.9183
-1.6965
-0.272782
106,459
6
C
1.2604
-0.3378
-3.4507
-0.169919
106,459
7
C
0.4094
0.2258
-2.5875
0.171357
106,459
8
C
-0.6716
1.2308
-2.7917
-0.528074
106,459
9
H
0.3728
-1.7907
1.2391
0.144914
106,459
10
H
1.5308
-0.4868
1.529
0.144914
106,459
11
H
-0.1163
-0.3617
2.1556
0.141234
106,459
12
H
-1.0372
-0.2191
-0.1496
0.131276
106,459
13
H
0.1107
1.0733
0.1377
0.131276
106,459
14
H
2.8106
0.6356
-1.5463
0.129075
106,459
15
H
2.8923
-0.8471
-0.5255
0.125384
106,459
16
H
2.8828
-1.8702
-3.0391
0.106318
106,459
17
H
1.3556
-2.5775
-0.9102
0.125384
106,459
18
H
0.1306
-2.3823
-2.2172
0.129075
106,459
19
H
1.3592
-0.1882
-4.5173
0.115433
106,459
20
H
-0.7384
1.5256
-3.843
0.154182
106,459
21
H
-1.6526
0.8426
-2.4883
0.153742
106,459
22
H
-0.5027
2.1385
-2.1979
0.153742
37,009
0
C
-0.0616
1.5936
0.0113
-0.35959
37,009
1
C
1.243
0.8508
-0.0052
0.005897
37,009
2
C
2.3482
0.8497
-1.0579
-0.015752
37,009
3
O
3.3571
0.8019
-0.0257
-0.497116
37,009
4
C
2.3682
0.8385
1.0262
-0.015752
37,009
5
C
-0.0406
0.0924
0.003
0.005897
37,009
6
C
-0.5629
-0.8933
1.0449
-0.015752
37,009
7
O
-1.0179
-1.7829
0.0023
-0.497116
37,009
8
C
-0.5829
-0.882
-1.0392
-0.015752
37,009
9
H
-0.3527
2.0963
0.9301
0.156836
37,009
10
H
-0.3702
2.1061
-0.8962
0.156836
37,009
11
H
2.3915
-0.0291
-1.7154
0.136495
37,009
12
H
2.4267
1.7592
-1.6684
0.136346
37,009
13
H
2.4584
1.7413
1.6448
0.136346
37,009
14
H
2.4239
-0.0474
1.6731
0.136495
37,009
15
H
0.1922
-1.3659
1.6874
0.136495
37,009
16
H
-1.3914
-0.5332
1.6694
0.136346
37,009
17
H
-1.4231
-0.5153
-1.6438
0.136346
37,009
18
H
0.1598
-1.3476
-1.7011
0.136495
29,859
0
C
-0.0254
1.4401
0.01
-0.316921
29,859
1
N
-0.0532
-0.0075
0.0023
-0.347175
29,859
2
C
-0.0072
-0.7931
-1.1315
-0.057705
29,859
3
C
0.0756
-2.0983
-0.7158
0.041469
29,859
4
C
0.121
-3.5086
-1.2097
-0.059186
29,859
5
O
0.2806
-4.3022
-0.0229
-0.50945
29,859
6
C
0.1351
-3.5214
1.1743
-0.059186
29,859
7
C
0.0839
-2.1059
0.6962
0.041469
29,859
8
C
0.0061
-0.8053
1.127
-0.057705
29,859
9
H
0.999
1.8314
0.0087
0.169585
29,859
10
H
-0.5456
1.8221
-0.8718
0.167754
29,859
11
H
-0.5398
1.8128
0.8992
0.167754
29,859
12
H
-0.0358
-0.3393
-2.1094
0.136063
29,859
13
H
-0.7997
-3.8085
-1.7346
0.134144
29,859
14
H
0.9651
-3.7194
-1.8804
0.13944
29,859
15
H
-0.7794
-3.8271
1.7067
0.134144
29,859
16
H
0.987
-3.7395
1.8327
0.13944
29,859
17
H
-0.0109
-0.3622
2.11
0.136063
33,387
0
C
-0.0039
-1.2142
-0.0044
-0.424294
33,387
1
C
-0.0039
-0.0163
0.002
0.364535
33,387
2
C
-0.0035
1.4579
0.0099
-0.270656
33,387
3
C
1.3724
1.9872
-0.0004
0.364535
33,387
4
C
2.4905
2.417
-0.0087
-0.424294
33,387
5
C
-0.7337
1.958
-1.1872
0.248027
33,387
6
N
-1.291
2.3399
-2.1222
-0.274799
33,387
7
C
-0.7107
1.9451
1.2261
0.248027
33,387
8
N
-1.25
2.3169
2.1756
-0.274799
33,387
9
H
-0.0037
-2.2774
-0.0101
0.221859
33,387
10
H
3.483
2.7982
-0.0162
0.221859
55,738
0
C
-0.1198
1.5291
0.0117
-0.529054
55,738
1
C
0.0905
0.024
0.0026
0.425186
55,738
2
O
1.1983
-0.462
-0.0086
-0.393191
55,738
3
C
-1.1773
-0.8271
0.0083
-0.422653
55,738
4
C
-0.9406
-2.3162
-0.0013
0.17411
End of preview.

SymQM-3k: A Symmetry-Resolved Quantum Chemistry Dataset

SymQM-3k is a dataset of 3,967 small organic molecules with DFT-validated point group symmetry and symmetry-resolved molecular orbital spectra. It is the first molecular ML dataset where orbital irreducible representation (irrep) labels are primary outputs of the quantum chemistry calculation rather than post-hoc annotations.

Dataset Summary

Property Value
Molecules 3,967
Total atoms 73,528
Total orbital entries 548,384
Point groups 21
Unique irrep tokens 20
Atoms types H, C, N, O, F
Level of theory B3LYP/6-31G*
Software ORCA 5.0.4
Source dataset QM9
Train / Val / Test 3,172 / 395 / 400

Files

Primary Files β€” used in all experiments

File Rows Description
target_summary_final.csv 3,967 One row per molecule: HOMO/LUMO energies (eV), irrep labels, irrep indices, point group, total SCF energy (Eh), dipole moment (Debye)
atom_details_final.csv 73,528 One row per atom: 3D coordinates (ORCA symmetry frame), element, Mulliken charge
orbital_profile_final.csv 548,384 One row per orbital: energy (eV), occupation, irrep label, sequential irrep index, is_homo and is_lumo flags
splits.csv 3,967 Fixed train/val/test split stratified by point group

Supplementary Files β€” provided for future use

File Rows Description
mayer_bond_orders.csv 75,123 Mayer bond orders between atom pairs (threshold > 0.1)
mayer_valence.csv 73,528 Mayer valence components VA and BVA per atom
molecule_metadata.csv 3,967 Rotational constants (MHz), asymmetric unit indices, SCF iteration count, asymmetric unit fraction

Model Weights

File Description
symmace_best.pt Pretrained SymMACE weights β€” reproduces paper results

Quick Start

import pandas as pd
from huggingface_hub import hf_hub_download

# Load molecular summary
summary = pd.read_csv(
    hf_hub_download(
        repo_id="taradutt007/symqm3k",
        filename="target_summary_final.csv",
        repo_type="dataset"))

print(f"Molecules: {len(summary)}")
print(f"Point groups: {summary['orca_pg'].nunique()}")
print(summary[['qm9_id', 'orca_pg', 'homo_ev',
               'lumo_ev', 'homo_irrep', 'lumo_irrep']].head())

Load Pretrained Model

from huggingface_hub import hf_hub_download
import torch

# Download weights
weights_path = hf_hub_download(
    repo_id="taradutt007/symqm3k",
    filename="symmace_best.pt",
    repo_type="dataset")

# Load and evaluate β€” see GitHub repo for full code
# github.com/staradutt/symqm3k
model.load_state_dict(
    torch.load(weights_path, map_location='cpu'))

Dataset Construction

SymQM-3k was constructed from QM9 via a three-stage pipeline:

Stage 1 β€” Topological filter (RDKit): Canonical atom ranking symmetry ratio < 0.7, retaining 18,830 candidates from 133,885 QM9 molecules.

Stage 2 β€” Structural point group (Pymatgen): PointGroupAnalyzer at 0.3 Γ… tolerance, identifying 3,983 non-C1 candidates.

Stage 3 β€” DFT calculation (ORCA 5.0.4): RKS B3LYP / 6-31G*, TightSCF, UseSym, SymThresh 1e-2 Bohr. 3,967 successfully converged with a non-trivial electronic point group.

Column Descriptions

target_summary_final.csv

Column Type Units Description
qm9_id int β€” QM9 molecule identifier
py_pg str β€” Structural point group (Pymatgen)
orca_pg str β€” Electronic point group (ORCA DFT)
homo_ev float eV HOMO energy
homo_irrep str β€” HOMO irrep label. NaN for C1 molecules
homo_irrep_idx float β€” Sequential index within irrep channel. NaN for C1
lumo_ev float eV LUMO energy
lumo_irrep str β€” LUMO irrep label. NaN for C1 molecules
lumo_irrep_idx float β€” Sequential index within irrep channel. NaN for C1
total_energy_eh float Eh Total SCF energy
dipole_debye float Debye Dipole moment magnitude

atom_details_final.csv

Column Type Units Description
qm9_id int β€” Foreign key
atom_idx int β€” Atom index within molecule (0-indexed)
element str β€” Atomic symbol: H, C, N, O, F
x float Γ… Cartesian x (ORCA symmetry frame)
y float Γ… Cartesian y
z float Γ… Cartesian z
charge float e Mulliken atomic charge

orbital_profile_final.csv

Column Type Units Description
qm9_id int β€” Foreign key
no int β€” Orbital index (0-indexed, energy ordered)
occ float β€” Occupation: 2.0 (occupied) or 0.0 (virtual)
ev float eV Orbital energy
irrep str β€” Mulliken irrep label. NaN for C1 molecules
irrep_idx float β€” Sequential index within irrep channel
is_homo int β€” 1 if HOMO, 0 otherwise
is_lumo int β€” 1 if LUMO, 0 otherwise

Point Group Distribution

Point Group Count %
Cs 2,657 66.98
C2 430 10.84
C2v 399 10.06
C1 297 7.49
C3v 57 1.44
C2h 45 1.13
Others 82 2.07

Known Limitations

  • 297 molecules (7.49%) have electronic point group C1 despite non-trivial structural symmetry, these have NaN irrep fields
  • High-symmetry groups (Td, Oh, D6h) have very few molecules (1-5 each),per-group statistics are unreliable for these
  • is_homo sums to 4,025 and is_lumo to 3,995 (not 3,967) due to degenerate frontier orbitals in high-symmetry molecules, this is physically correct
  • ORCA uses reduced subgroups of C2v for orbital labeling, irrep labels correspond to the reduced subgroup, not the nominal point group (see paper Appendix Table A1 for full mapping)
  • Free valence (FA) in mayer_valence.csv is zero for all atoms, dataset contains only closed-shell molecules

Reproducing Paper Results

git clone https://github.com/staradutt/symqm3k
cd symqm3k
pip install -r requirements.txt
python data/download.py
python evaluate.py --weights symmace_best.pt

Expected output: HOMO MAE : 0.1528 eV LUMO MAE : 0.1393 eV HOMO Irrep Acc : 76.0% LUMO Irrep Acc : 87.6% HOMO Irrep Idx MAE: 3.40 positions LUMO Irrep Idx MAE: 2.05 positions Transition Acc : 76.5%

Citation

License

Dataset: CC BY 4.0 Code: MIT

Downloads last month
19