\chapter{A robust, automated strategy to collect high quality OPA tuning curves} \label{cha:opa}

\begin{dquote}
  Principle design features of the new EVV 2DIR optical delivery system include the following:
  \begin{ditemize}
    \item Pairs of motorized gimbal mount mirrors on each OPA to compensate beam pointing changes.
    \item Automated calibration of OPAs, delay stages and motorized mounts.
  \end{ditemize}
      
  \dsignature{Paul Donaldson, ``Improving ... EVV 2DIR Spectroscopy'' (2007)
    \cite{DonaldsonPaulMurray2007a}}  % appears on page 313
\end{dquote}

\clearpage

\section{Introduction}  % =========================================================================

In frequency-domain Multi-Resonant Coherent Multidimensional Spectroscopy (MR-CMDS), automated
Optical Parametric Amplifiers (OPAs) are used to actively scan excitation color axes. %
To accomplish these experiments, exquisite OPA performance is required. %
During the experiment, motors inside the OPA move to pre-recorded positions to optimize output at
the desired color. %
Parametric conversion (``mixing'') strategies are now readily avalible, extending the 800 nm pumped
OPA tuning range into the visible, near-infrared, and mid-infrared. %

OPAs are very sensitive to changes in upstream lasers and lab conditions, so OPA tuning is
regularly required. %
Manual OPA tuning can easily take a full day. %
Furthermore, manual tuning typically results in inferior tuning curves, since it is difficult to
consider all available information simultaneously.  %
Automated OPA tuning makes OPA upkeep easier, faster and more reproducible, facilitating frequency
domain experiments. %
The major challenges in automated OPA tuning are:
\begin{enumerate}
  \item Expensive to take high resoltion data.
  \item Need smooth curves for interpolation, especially at edges where output is low.
  \item Optimization metrics are not necessarily separable along motor dimensions.
\end{enumerate}

In this chapter I describe my strategy for automatically collecting high resolution OPA tuning
curves.  %
While I have strategies for all four kinds of OPAs used in the Wright Group, I focus on the
femtosecond TOPAS-C models because they are by far the most challenging model to calibrate.  %

\clearpage
\section{TOPAS-C}  % ==============================================================================

[INTRODUCTION TO THE TOPAS-C]

% TODO: introduction to the internal design of the OPA

\begin{figure}
  \includegraphics[width=\textwidth]{opa/OPA_ranges}
  \caption{
    CAPTION TODO
  }
  \label{opa:fig:preamp}
\end{figure}

\begin{figure}
  \includegraphics[width=\textwidth]{opa/OPA_powers}
  \caption{
    CAPTION TODO
  }
  \label{opa:fig:preamp}
\end{figure}

\section{Preamp}  % ===============================================================================

In TOPAS-C OPAs, a small portion of input light is used to generate a signal seed in a BBO crystal
``C1''.  %
A motorized delay stage ``D1'' is used to temporally overlap a particular color in chirped white
light with 800 nm pump.  %
C1 angle is tuned to optimize phase matching.  %
Measured seed intensity and color for all combinations of C1 and D1 position are shown in
\autoref{fig:preamp}.  %

Output color and intensity are not separable along the preamp motor axes.  %
We therefore use a multidimensional fitting strategy to find the best preamp motor positions, as
shown below.  %

% TODO: procedure

A representative preamp tune procedure output image is shown in \autoref{fig:autotune_preamp}.  %
The thick black line is the final output curve.  %
The dark grey lines are the contours of constant color.  %
The colorbar shows the Delaunay-interpolated intensity values for each motor position.  %

Preamp tuning takes less than 20 minutes, in large part due to a NIR array detector which collects
the full spectrum at each motor position.  %

\begin{figure}
  \includegraphics[width=\textwidth]{opa/preamp}
  \caption{
    CAPTION TODO
  }
  \label{opa:fig:preamp}
\end{figure}

\begin{figure}
  \includegraphics[width=\linewidth]{opa/preamp_flowchart}
  \caption{
    CAPTION TODO
  }
\end{figure}

\begin{figure}
  \includegraphics[width=\linewidth]{opa/autotune_preamp}
  \caption{
    CAPTION TODO
  }
  \label{opa:fig:autotune_preamp}
\end{figure}

\section{Poweramp}  % =============================================================================

Once generated, the seed goes on to be amplified in a second BBO crystal ``C2'' with the rest of
the 800 nm pump.  %
Optimizing this amplification step is primarily a matter of setting C2 angle.  %
A small delay correction ``D2'' is necessary to account for dispersion in the seed optics.  %
To fully explore poweramp behavior, we need to tak a C2-D23 scan for each seed color.  %
Measured output intensity and color in this 3D space is represented in \autoref{fig:poweramp}.  %
Note that the motor axes are scans about the previously recorded tuning curve value.  %

The best position (zero displacement along both axes) is chosen to maximize output intensity while
keeping the output color identical to the seed color.  %
Optimizing for zero detuining rather than simply for output intensity has led to better OPA
performance and stability.  %
Like in the preamp case, color and intensity are not fully separable along the poweramp motor
dimensions (this is especially true at the edge output colors).  %
In the poweramp, the increased dimensionaity makes it too expensive to do a full multidimensional
tuning procedure.  %
Instead we emply an iterative procedure as diagrammed below.  %

% TODO: procedure

We always end the iteration(s) with C2 so that the OPA's color calibration is as good as
possible.  %
Typically only one iteration is required but multiple iterations may be necessary if dramatic OPA
realignment has occurred.  %
In total, poweramp tuning typically takes less than 1 hour. %
Representative procedure output images for D2 (\autoref{op:fig:d2}) and C2 (\autoref{opa:fig:c2})
are shown.  %

For the D2 figure, the lower panel shows the intensity of the data taken.  %
Note the thick grey line, which represents the chosen points before the final spline step.  %
The top panel compares the old tuning curve (thin) with the output tuning curve (thick).  %
For the C2 image, the bottom panel represents the color of each fit mapped onto detuning.  %
Each separate marker color represents a different setpoint.  %
As with D2, the C2 upper panel compares the old tuning curve (thin black) with the output tuning
curve (colored X's).  %

\begin{figure}
  \includegraphics[width=\linewidth]{opa/poweramp}
  \caption{
    CAPTION TODO
  }
  \label{opa:fig:poweramp}
\end{figure}

\begin{figure}
  \includegraphics[width=\linewidth]{opa/poweramp_flowchart}
  \caption{
    CAPTION TODO
  }
\end{figure}

\begin{figure}
  \includegraphics[width=\textwidth]{opa/d2}
  \caption{
    CAPTION TODO
  }
  \label{opa:fig:d2}
\end{figure}

\begin{figure}
  \includegraphics[width=\textwidth]{opa/c2}
  \caption{
    CAPTION TODO
  }
  \label{opa:fig:c2}
\end{figure}

\section{Mixers}  % ===============================================================================

[DESCRIPTION OF MIXERS]

\section{Generalizability}  % =====================================================================

\begin{figure}
  \includegraphics[width=\textwidth]{"opa/signal_and_idler_motortune"}
  \caption[CAPTION TODO]{
    CAPTION TODO
  }
\end{figure}

\section{Future directions}  % ====================================================================

% TODO: discuss Attune