Invntr
Source

All instruments

huckel_mo

Hueckel molecular-orbital theory for a conjugated pi system given as atoms and bonds (heteroatom h and k optional): orbital energies alpha + x beta, coefficients, pi-electron energy, delocalisation energy against a localised structure, HOMO-LUMO gap, pi charges, bond orders and free valences. Optional beta in eV turns the gap into eV and a wavelength.

Field
Chemistry
Version
0.1.0
Runs as
Compiled (Rust)
Typical run
0.02 s

Compiled from source: run sh packs/install.sh once before admitting it.

Known answers it must pass

Admission replayhuckel_mo 0.1.0 · files d22bb1a24f84…bf92
  1. r0001ethylene: exact 2x2 roots x = +-1, E = 2 alpha + 2 beta, bond order 1, gap 2|beta|; with beta = -2.7 eV the gap wavelength is hc/(5.4 eV) = 229.600367 nm from exact SI h, c, e (closed form, rel 1e-6)passed

    orbital_x.0{"value": 1.0, "rel_tol": 1e-06}
    orbital_x.1{"value": -1.0, "rel_tol": 1e-06}
    pi_energy_beta2 ± 2e-062lockedunder 0.01 % of the tolerance used
    bond_orders.0{"value": 1.0, "rel_tol": 1e-06}
    homo_lumo_gap_beta2 ± 2e-062lockedunder 0.01 % of the tolerance used
    delocalisation_energy_beta0 ± 1e-090lockedunder 0.01 % of the tolerance used
    gap_wavelength_nm229.6 ± 0.00023229.6lockedunder 0.01 % of the tolerance used
  2. r0002butadiene (Coulson, linear chain x = 2cos(k pi/5)): x = +-1.618034, +-0.618034; E = 4 alpha + 2 sqrt5 beta = 4.472136; delocalisation 2 sqrt5 - 4; bond orders 2/sqrt5 and 1/sqrt5; gap sqrt5 - 1 (closed form, rel 1e-6)passed

    orbital_x.0{"value": 1.618033988749895, "rel_tol": 1e-06}
    orbital_x.1{"value": 0.6180339887498949, "rel_tol": 1e-06}
    orbital_x.2{"value": -0.6180339887498949, "rel_tol": 1e-06}
    orbital_x.3{"value": -1.618033988749895, "rel_tol": 1e-06}
    pi_energy_beta4.47214 ± 4.5e-064.47214lockedunder 0.01 % of the tolerance used
    delocalisation_energy_beta0.472136 ± 4.7e-070.472136lockedunder 0.01 % of the tolerance used
    bond_orders.0{"value": 0.8944271909999159, "rel_tol": 1e-06}
    bond_orders.1{"value": 0.4472135954999579, "rel_tol": 1e-06}
    homo_lumo_gap_beta1.23607 ± 1.2e-061.23607lockedunder 0.01 % of the tolerance used
  3. r0003benzene (ring x = 2cos(2 pi k/6)): x = 2, 1, 1, -1, -1, -2; E = 6 alpha + 8 beta; delocalisation 2 beta; every bond order 2/3; no pi charge (closed form, rel 1e-6)passed

    orbital_x.0{"value": 2.0, "rel_tol": 1e-06}
    orbital_x.1{"value": 1.0, "rel_tol": 1e-06}
    orbital_x.2{"value": 1.0, "rel_tol": 1e-06}
    orbital_x.3{"value": -1.0, "rel_tol": 1e-06}
    orbital_x.5{"value": -2.0, "rel_tol": 1e-06}
    pi_energy_beta8 ± 8e-068lockedunder 0.01 % of the tolerance used
    delocalisation_energy_beta2 ± 2e-062lockedunder 0.01 % of the tolerance used
    bond_orders.0{"value": 0.6666666666666666, "rel_tol": 1e-06}
    bond_orders.2{"value": 0.6666666666666666, "rel_tol": 1e-06}
    bond_orders.5{"value": 0.6666666666666666, "rel_tol": 1e-06}
    largest_charge0 ± 1e-090lockedunder 0.01 % of the tolerance used
    homo_lumo_gap_beta2 ± 2e-062lockedunder 0.01 % of the tolerance used
    closed_shell= truetruelockedexact match
  4. r0004allyl radical (chain x = 2cos(k pi/4)): x = sqrt2, 0, -sqrt2; E = 3 alpha + 2 sqrt2 beta; delocalisation 2 sqrt2 - 2; one unpaired electron; no pi charge (Coulson-Rushbrooke, alternant) (closed form, rel 1e-6)passed

    orbital_x.0{"value": 1.4142135623730951, "rel_tol": 1e-06}
    orbital_x.1{"value": 0.0, "abs_tol": 1e-09}
    orbital_x.2{"value": -1.4142135623730951, "rel_tol": 1e-06}
    pi_energy_beta2.82843 ± 2.8e-062.82843lockedunder 0.01 % of the tolerance used
    delocalisation_energy_beta0.828427 ± 8.3e-070.828427lockedunder 0.01 % of the tolerance used
    bond_orders.0{"value": 0.7071067811865476, "rel_tol": 1e-06}
    unpaired_electrons= 11lockedexact match
    largest_charge0 ± 1e-090lockedunder 0.01 % of the tolerance used
  5. r0005allyl cation (charge +1): two electrons in the sqrt2 orbital (1/2, 1/sqrt2, 1/2) give +1/2 on each end, 0 in the middle, bond order 1/sqrt2, gap sqrt2 (closed form, rel 1e-6)passed

    charges.0{"value": 0.5, "rel_tol": 1e-06}
    charges.1{"value": 0.0, "abs_tol": 1e-09}
    charges.2{"value": 0.5, "rel_tol": 1e-06}
    bond_orders.0{"value": 0.7071067811865476, "rel_tol": 1e-06}
    homo_lumo_gap_beta1.41421 ± 1.4e-061.41421lockedunder 0.01 % of the tolerance used
    closed_shell= truetruelockedexact match
  6. r0006cyclobutadiene (ring x = 2cos(2 pi k/4)): x = 2, 0, 0, -2, a degenerate non-bonding pair holding two electrons (two unpaired, Hund), E = 4 alpha + 4 beta, delocalisation 0, every bond order 1/2 (closed form, rel 1e-6)passed

    orbital_x.0{"value": 2.0, "rel_tol": 1e-06}
    orbital_x.1{"value": 0.0, "abs_tol": 1e-09}
    orbital_x.2{"value": 0.0, "abs_tol": 1e-09}
    orbital_x.3{"value": -2.0, "rel_tol": 1e-06}
    pi_energy_beta4 ± 4e-064lockedunder 0.01 % of the tolerance used
    delocalisation_energy_beta0 ± 1e-090lockedunder 0.01 % of the tolerance used
    degenerate_frontier= truetruelockedexact match
    unpaired_electrons= 22lockedexact match
    bond_orders.0{"value": 0.5, "rel_tol": 1e-06}
    bond_orders.1{"value": 0.5, "rel_tol": 1e-06}
  7. r0007two-centre C=X heteroatom bond, h = 1, k = 1 (secular equation x^2 - x - 1 = 0): x = (1 +- sqrt5)/2; pi charge -1/sqrt5 on X and +1/sqrt5 on C; bond order 2/sqrt5; delocalisation 0 against its own double bond (closed form, rel 1e-6)passed

    orbital_x.0{"value": 1.618033988749895, "rel_tol": 1e-06}
    orbital_x.1{"value": -0.6180339887498949, "rel_tol": 1e-06}
    charges.0{"value": 0.4472135954999579, "rel_tol": 1e-06}
    charges.1{"value": -0.4472135954999579, "rel_tol": 1e-06}
    bond_orders.0{"value": 0.8944271909999159, "rel_tol": 1e-06}
    delocalisation_energy_beta0 ± 1e-090lockedunder 0.01 % of the tolerance used
7 of 7 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.

Inputs

NameUnitDefaultMeaning
atoms1The pi centres: a count of carbons (6), or a list where each item is a label ("C") or {"label": "N", "h": 0.5, "electrons": 1}. h sets the Coulomb integral alpha_X = alpha + h beta (carbon 0); electrons is what the atom gives to the pi system (0, 1 or 2). 1 to 80 centres.
bonds1Bonds as [i, j] with atoms numbered from 1, or [i, j, k] where beta_ij = k beta (carbon-carbon 1). Each bond once.
charge10Net charge of the pi system in elementary charges: 1 for a cation (one electron fewer), -1 for an anion.
double_bonds1Optional: the double bonds of the localised reference structure, as [[1,2],[3,4]]. Left out, a maximum matching of the bonds between one-electron atoms is used.
beta_eVOptional: the resonance integral beta in eV (negative, typically -2.4 to -3 for C-C). Gives the gap in eV and its wavelength. Left out, everything stays in units of beta.

Readings

NameUnitMeaning
atoms1
bonds1
pi_electrons1
orbital_x1orbital energies E = alpha + x beta, most bonding first (beta < 0, so larger x is lower in energy)
occupancy1
pi_energy_alpha1the alpha part of the pi energy: the number of pi electrons
pi_energy_beta1the beta part of the pi energy, in units of beta
reference_energy_beta1
delocalisation_energy_beta1pi energy minus the localised reference, in units of beta (positive is stabilising)
delocalisation_energy_per_electron_beta1
homo_x1
lumo_x1
homo_lumo_gap_beta1x_HOMO - x_LUMO, in units of |beta|; 0 for an open shell (the SOMO is both)
unpaired_electrons1
densities1
charges1pi charge per atom in elementary charges: electrons given minus pi density
largest_charge1
bond_orders1Coulson pi bond orders, in the order of the bond list
max_bond_order1
min_bond_order1
free_valences1
fragments1
beta_eVthe resonance integral as given, in eV (eV is not in the kernel unit table, so no unit is declared)
delocalisation_energy_eVdelocalisation energy in eV (stabilisation, positive) (eV is not in the kernel unit table, so no unit is declared)
pi_energy_beta_part_eVthe beta part of the pi energy in eV (eV is not in the kernel unit table, so no unit is declared)
homo_lumo_gap_eVHOMO-LUMO gap in eV (eV is not in the kernel unit table, so no unit is declared)
gap_wavelength_nmnmh c / (gap in eV), from the exact SI values of h, c and e
orbitals
atom_table
bond_table

Try the call

Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.

Terminal
MCP call