A fast and reliable method to calibrate LiNbO3-based polarization controllers (PCs) presented theoretically and experimentally. Particle swarm optimization (PSO) algorithm is used as an adaptive searching algorithm. Experimental results show that PSO