Validation of importance sampling in Gate