Half-quantum vortices in exciton–polariton condensates in applied magnetic field