Plasma-based accelerators driven by either intense lasers1 or charged particle beams2 can accelerate electrons positrons with extremely high gradients compared conventional radio-frequency accelerators. For their use as next-generation light sources and in energy frontier colliders3, beams good stability, quality, controllable polarization excellent reproducibility4,5 are required. The accelera...