def __call__(self, params, output, circuit_scope): scope = Scope.merge(circuit_scope, self.scope) arguments = dict_params_with(self.parameters, params) return evaluate_in_scope(self.sexpr, scope.update(arguments))