Beam-dynamics-informed determination of subharmonic buncher phase and amplitude in the High Energy Photon Source Linac | Synapse