On-chip generation and manipulation of entangled photons based on reconfigurable lithium-niobate waveguide circuits.