faster state vector conversion