The invention relates to an apparatus for measuring intracorporeally generated magnetic fields, comprising: a
catheter, wherein an optical
waveguide device is arranged within the
catheter, a sensor unit for measuring magnetic fields, wherein the sensor unit is a
nitrogen-vacancy centre
magnetometer which has, as a sensor medium, one or more
diamond crystals having a plurality of
nitrogen-vacancy centres, wherein the one or more
diamond crystals are arranged within the optical
waveguide device, wherein the sensor unit comprises a
magnetic field generating device for generating a
magnetic field in the region of the sensor medium, wherein the sensor unit has an excitation
light source for radiating excitation light into the optical
waveguide device in order to excite the sensor medium, wherein the sensor unit comprises a
microwave source for generating microwaves in order to excite the sensor medium with microwaves, and wherein the sensor unit comprises a
photodetector for detecting
resonance-dependent
fluorescent light from the sensor medium, and an evaluation unit which is configured to determine, based on the detected
fluorescent light, a
magnetic field at the respective location of the one or more
diamond crystals. The invention relates to a method for measuring intercorporeally generated magnetic fields, a
computer program and a
machine-readable storage medium.