Quantum decoherence induced by defects remains a major limitation for solid-state quantum technologies, yet predicting decoherence in realistic materials remains computationally challenging. Complex defect populations are often approximated as homogeneous spin baths, obscuring the role of defect-specific electronic structure and spin dynamics. Here, we develop a predictive framework for decoherence in diamond by combining first-principles electronic-structure calculations, quantum many-body spin-bath simulations, and experimental validation. The framework incorporates defect-resolved spin Hamiltonians and heterogeneous spin baths containing multiple paramagnetic defect species. Using diamond nitrogen-vacancy ensembles as a model platform, we investigate mixed nitrogen-, vacancy-, and hydrogen-related defect environments. We show that decoherence depends not only on defect density but also on defect identity and bath composition, whose distinct electronic structures, hyperfine interactions, and spin dynamics produce different coherence behavior. Heterogeneous defect populations can either suppress or enhance decoherence, producing trends unexplained by homogeneous-bath models. Magnetic-field-dependent Hahn-echo measurements on samples with different defect concentrations validate the framework. The calculations reproduce the observed coherence times and stretched-exponential decay behavior across a broad magnetic-field range and identify vacancy-related defects as critical contributors beyond the conventionally assumed P1 spin bath. By linking atomistic defect properties to quantum coherence, our framework provides a predictive route for identifying hidden defect environments and optimizing decoherence in defect-based quantum materials.
We study decoherence induced on a two-level system coupled to a one-dimensional quantum spin chain. We consider the cases where the dynamics of the chain is determined by the Ising, XY, or Heisenberg exchange Hamiltonian. This model of quantum baths can be of fundamental importance for the understanding of decoherence in open quantum systems, since it can be experimentally engineered by using atoms in optical lattices. As an example, here we show how to implement a pure dephasing model for a qubit system coupled to an interacting spin bath. We provide results that go beyond the case of a central spin coupled uniformly to all the spins of the bath, in particular showing what happens when the bath enters different phases, or becomes critical; we also study the dependence of the coherence loss on the number of bath spins to which the system is coupled and we describe a coupling-independent regime in which decoherence exhibits universal features, irrespective of the system-environment coupling strength. Finally, we establish a relation between decoherence and entanglement inside the bath. For the Ising and the XY models we are able to give an exact expression for the decay of coherences, while for the Heisenberg bath we resort to the numerical time-dependent density matrix renormalization group.