twpasolver.analysis.phase_matching module#

Phase mismatch of 3WM and 4WM processes over pump and signal frequencies.

twpasolver.analysis.phase_matching.phase_matching(problem_at: Callable[[float], CMEProblem], signal_f: ndarray, pump_f: ndarray, stopbands: ndarray, seg_N_tot: ndarray, seg_xi: ndarray, Ip0: float, process: Literal['PA', 'FCU', 'FCD'], mixing: Literal['3WM', '4WM'], signal_mode: str, pump_mode: str, idler_mode: str, relative: bool, unit: str) → PhaseMatchingResult[source]#

Mismatch for every pump of pump_f; problem_at(pump) gives the CME problem with the signal swept over signal_f.

Segmented devices accumulate sum_s N_s dk_s, so delta is the length-weighted mean of the per-segment mismatch (own k, reflection and chi = Ip0**2 xi_s / 8).