Next, a Calculator is employed to compute the stress tensor for each strained structure, and any atomate2 Calculator that supports stress tensors, as mentioned in the Calculators section, can be used for this computation. Finally, the sets of strains and stresses are used to fit the elastic tensor using the strain-stress relationship, as implemented in pymatgen.