Magnetic control over the zitterbewegung of exciton–polaritons