Electronic dielectric tensors: coordinate frame and matching structure

Hello Materials Project team,

Could you clarify the coordinate convention and recommended structure pairing for electronic dielectric tensors returned by the current materials.dielectric API?

For structure-to-tensor applications, I would like to retrieve a structure and its electronic dielectric tensor in exactly the same Cartesian frame. The dielectric methodology documentation describes the electronic and ionic contributions, but I would appreciate guidance on the following:

  1. Are the electronic dielectric tensor components expressed in the Cartesian frame of the originating DFPT calculation, an IEEE-standardized frame, or another convention?
  2. Which structure is guaranteed to match that frame? Can a structure from materials.summary be directly paired with a tensor from materials.dielectric, or should the exact originating DFPT task structure be retrieved?
  3. If the structures differ by standardization or rotation, is a transformation matrix available in the API? What is the recommended procedure for obtaining an aligned pair while retaining the correct task provenance?

For a coordinate change using column vectors, r_new = R @ r_old, I expect the tensor to transform as epsilon_new = R @ epsilon_old @ R.T. A short example showing how this relates to the API structures would be very helpful.

I have seen the historical origins/task-mapping report materialsproject/api#960. I understand that its fix concerned provenance mapping rather than the underlying property values, and I am not claiming that the previous bug persists.

This is a coordinate-convention and data-access clarification request, not a confirmed bug report. Could you point me to the authoritative way to obtain a frame-consistent structure and electronic dielectric tensor?

Thank you for your help.

  1. The electronic dielectric tensor in our data is expressed in the IEEE frame.
  2. Each property has a corresponding computation task ID (with the computation details, including structure). The easiest way to find the task ID is on the website’s detail page, in the Property Origins tab, as shown in the attached image. You can also get information with the code:
from mp_api.client import MPRester
import crystal_toolkit # For visualizing strcutrure in jupyter notebook

mpid = "mp-149" # Take Si as example

with MPRester() as mpr:
    summary_docs = mpr.materials.dielectric.search(mpid)

    task_id = [ori.task_id for ori in doc[0].origins if ori.name=="dielectric"][0]
    dielectricl_task = mpr.materials.tasks.search(task_id)
dielectricl_task[0].structure

  1. For the transformation using the task structure, we are using Tensor.convert_to_ieee() from Pymatgen; there is also rotate() in this module.

Hope this helps!