High-contrast dispersive readout of a superconducting flux qubit using a nonlinear resonator.