Interactive Algorithm Example
Quantum Chemistry
Interactive Algorithm Component
Hover over the highlighted parts of the algorithm to see descriptions on the right side.
Example: Hartree-Fock SCF Procedure
1. Initialize molecular orbital coefficients C_init2. Build density matrix: P = 2 * C * C^T density_matrix3. Construct fock matrix: F = H core + G P fock_matrix4. Solve generalized eigenvalue problem: F * C = S * C * ε solve_eigenvalue5. Check convergence: |P_new - P_old| < threshold convergence6. If not converged, update C and go to step 2 iteration7. Compute total energy: E = trace(P * H core) + 0.5 * trace(P * G P) energy
👆
Hover over any row or term
to see descriptions
Usage Instructions
To use this component in your pages, you can mark hoverable parts in three ways:
{id} - References a description from the descriptions prop
[id:inline description] - Uses inline description text
<term_id> - References a term definition from the termDefinitions prop Provide descriptions and term definitions as prop objects:
descriptions- Maps IDs to full descriptions (shown when hovering over {id} markers)termDefinitions- Maps term IDs to term definitions (shown when hovering over term markers)
Terms are styled differently (green with dotted underline) to distinguish them from algorithm step descriptions.