High-fidelity readout of trapped-ion qubits.