Backend

This section describes the backend modules in Optiland. The backend provides different computational engines for ray tracing and other calculations.

backend.base

AbstractBackend ABC, @passthrough decorator, and BackendCapabilityError.

backend.numpy_backend

NumPy backend — implements AbstractBackend using NumPy and SciPy.

backend.torch_backend

PyTorch backend — implements AbstractBackend using PyTorch.

backend.utils

Utility functions for working with different backends.