Thanks for your swift answer.
From what I understand the factor in X0 - (SIM3) - X1 is represented by EssentialMatrixConstraint.h
I confused it with EssentialMatrixFactor.h which can be used to compute an essential matrix if I understand correctly.
I am currently using the python API where I seem to have no access to EssentialMatrixConstraint code.
I would like to implement and give a merge request for this to be accessible in python.
Is there a reference I can look at to achieve this?