pyfli.reconstruction.common_reconstruct#

Functions

bi_reconstruction(t, tau1, tau2, A1, A2)

bi_reconstruction_torch(t, tau1, tau2, A1, A2)

mono_reconstruction(t, tau[, S])

mono_reconstruction_torch(t, tau[, S])

periodic_bin_exponential(tau, n_bins, period)

Fraction of the photons of a periodically excited mono-exponential decay (lifetime tau, any shape S) that falls in each of n_bins equal bins covering one repetition period (same time unit as tau).

periodic_instrument_exponential(tau, n_bins, ...)

Per-bin photon distribution of a periodically excited mono-exponential decay as a real time-resolved instrument records it: excitation (IRF) photons arrive anywhere inside their bin, not at its start, so this is the decay kernel that, circularly convolved with the binned IRF, gives the binned measurement when the IRF density is uniform within each bin.

periodic_bin_exponential(tau, n_bins, period)[source]#

Fraction of the photons of a periodically excited mono-exponential decay (lifetime tau, any shape S) that falls in each of n_bins equal bins covering one repetition period (same time unit as tau). In steady state the tails of all earlier pulses add up to the same exponential shape, so bin k receives exp(-k dt / tau) (1 - exp(-dt / tau)) / (1 - exp(-period / tau)) with dt = period / n_bins. Returns S + (n_bins,), summing to 1 along the last axis.

periodic_instrument_exponential(tau, n_bins, period)[source]#

Per-bin photon distribution of a periodically excited mono-exponential decay as a real time-resolved instrument records it: excitation (IRF) photons arrive anywhere inside their bin, not at its start, so this is the decay kernel that, circularly convolved with the binned IRF, gives the binned measurement when the IRF density is uniform within each bin. With x = dt / tau and dt = period / n_bins:

  • bin 0: 1 - (1 - e^-x) / x (decays starting and ending in the excitation bin) plus the wrapped tails of earlier pulses;

  • bin m >= 1: e^(-m x) (1 - e^-x)(e^x - 1) / x, divided by 1 - exp(-period / tau) for the periodic steady state.

Its discrete Fourier transform at the laser frequency equals the continuous phasor 1 / (1 - i omega tau) up to ~1e-4, so IRF-calibrated phasors of such data lie on the universal semicircle. periodic_bin_exponential() is the kernel when every excitation is at a bin start (pyfli’s PhotonCountSimulator). Returns S + (n_bins,), summing to 1 along the last axis.

mono_reconstruction(t, tau, S=1.0)[source]#
bi_reconstruction(t, tau1, tau2, A1, A2)[source]#
mono_reconstruction_torch(t, tau, S=1.0)[source]#
bi_reconstruction_torch(t, tau1, tau2, A1, A2)[source]#