An interferometer for X-rays, in particular hard X-rays, for obtainingquantitative phase contrast images, includes a standard polychromatic X-raysource, a diffractive optical beam splitter other than a Bragg crystal intransmission geometry, and a position-sensitive detector with spatiallymodulateddetection sensitivity.