Solver
B-field solver tools.
Tools for solving the NV center hamiltonian
- class nvtools.solver.BField(b_abs: list[float], theta: list[float], b_vec: Vector)[source]
B-field.
- b_abs: list[float]
- property mean_field
Calculate mean absolute field value.
- theta: list[float]
- class nvtools.solver.Solver[source]
B-field Solver.
- static field_from_resonances(fl, fu)[source]
Calculate absolute field value and angle to NV-axis.
- Parameters:
fl – lower resonance frequency
fu – upper resonance frequency
- field_from_spectrum(mw_frequency, odmr, p0_frequency=None)[source]
Calculate field from odmr spectrum.
- Parameters:
mw_frequency – MW frequency
odmr – ODMR
p0_frequency (list | None) – estimates for resonance frequencies