A quantum homomorphic encryption scheme for polynomial-sized circuits