Functions

Transmission Experiments

scan_laser_freq

ntypecqed.transmission_experiments.scan_laser_freq(experiment, start_freq, stop_freq, observables=None, scan_laser='probe', steps=100)

Scans the frequency of a laser and returns transmission by default or user given observables

Parameters:
  • experiment (ntypecqed.simulation.NTypeExperiment) – The experiment on which the scan is performed
  • start_freq (float) – Start frequency of the scan
  • stop_freq (float) – Stop frequency of the scan
  • observables (list(qutip.operator)) – Observables for which the steadystate is calculated
  • scan_laser (str) – Which laser to scan, either probe, signal or control
  • steps (int) – Number of steps
Returns:

tuple(frequencies, list of lists of the steadystates of the observables)

scan_laser_power

ntypecqed.transmission_experiments.scan_laser_power(experiment, start_power, stop_power, observables=None, scan_laser='probe', steps=100)

Scans the frequency of a laser and returns transmission by default or user given observables

Parameters:
  • experiment (ntypecqed.simulation.NTypeExperiment) – The experiment on which the scan is performed
  • start_power (float) – Start power of power scan
  • stop_power (float) – Stop power of power scan
  • observables (list of qutip.operator) – Observables for which the steadystate is calculated
  • scan_laser (str) – Which laser to scan, either probe, signal or control
  • steps (int) – Number of steps
Returns:

tuple(powers, list of lists of the steadystates of the observables)

Correlation Experiments

cross_correlation

ntypecqed.correlation_experiments.cross_correlation(experiment, start_time, stop_time, steps=500, flip_time_axis=False)

Performs a cross correlation between signal and probe light field

Parameters:
  • experiment (ntypecqed.simulation.NTypeExperiment) – The experiment on which the scan is performed
  • start_time (float) – Start time of the correlation
  • stop_time (float) – Stop time of the correlation
  • steps (int) – Number of steps
  • flip_time_axis (bool) – if True the positive time direction is a signal photon first and a probe photon second
Returns:

tuple(times, correlation value)

self_correlation

ntypecqed.correlation_experiments.self_correlation(experiment, stop_time, steps=500, field='probe')

Returns the self correlation (g_s) of one of the cavity fields

Parameters:
  • experiment (ntypecqed.simulation.NTypeExperiment) – The experiment on which the scan is performed
  • stop_time (float) – Stop time of the correlation
  • steps (int) – Number of steps
  • field (str) – The field for which the self correlation is calculated, either ‘probe’ or ‘signal’
Returns:

tuple(times, correlation value)