Pulse shape discrimination in the LUX-ZEPLIN experiment