Solid-state circuit for spin entanglement generation and purification.