A device for frequency analysis of a signal, comprising: - a diamond crystal having a crystal lattice, a valence band and a conduction band, the crystal comprising NV centers in the crystal lattice, each NV center being made up of a nitrogen atom substituted for a carbon atom and coupled to a vacancy, the nitrogen atom and vacancy pair making up a colored center in the crystal lattice, the diamond crystal having at least one region including several sub-regions each having a resonance frequency between the energy levels of the NV - center in which, for each of the sub-regions, when the sub-region is in the presence of an optical or electric excitation, charges are generated in the conduction band, and, in the presence of a signal having at least one frequency equal to the resonance frequency of the sub-regions, the quantity of charges varies with the amplitude of the frequency component of the signal at the resonance frequency, - an excitation unit for optically or electrically exciting each sub-region, - an injection unit for injecting a signal for the sub-region to be in the presence of the signal, - a magnetic field generator configured to generate a magnetic field on each sub-region, the magnetic field having a spatial variation of amplitude in a first direction, and - a detector adapted to detect the resonance frequency of each sub-region of the region, the detector being characterized in that the detector includes: ∘ an electrical contact for each sub-region whose detector is adapted to detect the resonance frequency, each electrical contact being able to detect the charges created in the sub-region in question in the conduction band of the crystal in order to obtain a signal when the sub-region is simultaneously in the presence of an optical or electrical excitation coming from the excitation unit and a signal injected by the injection unit, and ∘ a silicon reading circuit connected to the contacts in order to convert each obtained signal into a converted signal, each converted signal depending on the amplitude of the frequency component at the resonance frequency of the sub-region. - a diamond crystal having a crystal lattice, a valence band and a conduction band, the crystal comprising NV centers in the crystal lattice, each NV center being made up of a nitrogen atom substituted for a carbon atom and coupled to a vacancy, the nitrogen atom and vacancy pair making up a colored center in the crystal lattice, the diamond crystal having at least one region including several sub-regions each having a resonance frequency between the energy levels of the NV - center in which, for each of the sub-regions, when the sub-region is in the presence of an optical or electric excitation, charges are generated in the conduction band, and, in the presence of a signal having at least one frequency equal to the resonance frequency of the sub-regions, the quantity of charges varies with the amplitude of the frequency component of the signal at the resonance frequency, - an excitation unit for optically or electrically exciting each sub-region, - an injection unit for injecting a signal for the sub-region to be in the presence of the signal, - a magnetic field generator configured to generate a magnetic field on each sub-region, the magnetic field having a spatial variation of amplitude in a first direction, and - a detector adapted to detect the resonance frequency of each sub-region of the region, the detector being characterized in that the detector includes: ∘ an electrical contact for each sub-region whose detector is adapted to detect the resonance frequency, each electrical contact being able to detect the charges created in the sub-region in question in the conduction band of the crystal in order to obtain a signal when the sub-region is simultaneously in the presence of an optical or electrical excitation coming from the excitation unit and a signal injected by the injection unit, and ∘ a silicon reading circuit connected to the contacts in order to convert each obtained signal into a converted signal, each converted signal depending on the amplitude of the frequency component at the resonance frequency of the sub-region. ∘ an electrical contact for each sub-region whose detector is adapted to detect the resonance frequency, each electrical contact being able to detect the charges created in the sub-region in question in the conduction band of the crystal in order to obtain a signal when the sub-region is simultaneously in the presence of an optical or electrical excitation coming from the excitation unit and a signal injected by the injection unit, and ∘ a silicon reading circuit connected to the contacts in order to convert each obtained signal into a converted signal, each converted signal depending on the amplitude of the frequency component at the resonance frequency of the sub-region.