Skip to content

Architecture

Quachem Workbench is one Python package and one container image. A researcher installs and runs one program, which serves the browser interface and runs jobs through the engine container.

The full design is in the specification, section 4, and the reasons for each choice are in the decision record.

Component Runs in What it does
core app and container Data models, the TOML input format and its validation, and the resolver that writes every unspecified setting out as an explicit value with its source.
runner container only Runs one job bundle with PySCF or GPU4PySCF and writes the result and raw engine output. It makes no network calls.
executors app Local, SSH workstation and Slurm-over-SSH executors behind one interface.
jobs app The job state machine, queues, schedules, run windows, dependencies, polling and reconciliation after a reconnect.
service app The background service that hosts the jobs and the API, keeps the computer awake while jobs run, and sends notifications.
storage app Project folders on disk and a SQLite index that the app can rebuild from them.
chem app RDKit services: SMILES and file import, 3D embedding, force-field clean-up, point groups, symmetrisation and the PubChem client.
api app A FastAPI HTTP API for the interface and the command line, with live job updates.
web browser The Vite, React and TypeScript interface, with the three.js 3D editor and the result views.
cli app The qcw command line, which covers every operation the interface offers and calls the same API.
validation separate suite Downloads reference data, runs the validation tiers through the workbench, and writes the published report.
  • A project is a folder of readable files: inputs, results as JSON, provenance and raw engine output. The SQLite database only indexes those folders.
  • Every job and result has a globally unique identifier, and a result is never changed after it is written. Running a job again creates a new result.
  • Each result records the workbench version, the engine package versions, the container image digest, the device, every resolved setting and the hash of the input molecule.

The engine image pins every Python package by hash and runs as an unprivileged user. It builds its own Libxc 7.1.2 with GPU4PySCF’s prune patch and the workbench’s host-memory patch, so GPU jobs under WSL2 run with normal kernel launches. qcw engine info shows the GPU, the launch mode and the patches the image records.

The service listens on the local machine only. The browser signs in with a one-time link that qcw open writes, and the API checks the Host and Origin headers. You answer SSH password and Duo prompts in the workbench window, never on the command line.

An open-source project on GitHub. Built by Graham Morley.