def _serialize_circuit(
        self,
        circuit: cirq.circuits.AbstractCircuit,
        param_resolver: cirq.study.ParamResolverOrSimilarType,
    ) -> str:
        """Serialize a given Circuit.
        Args:
            circuit: The circuit to be run
            param_resolver: Param resolver for the
        Returns:
            json serialized string
        """
        circuit = cirq.protocols.resolve_parameters(circuit, param_resolver)
        serialized_circuit = cirq.to_json(circuit)

        return serialized_circuit
Serialize a given Circuit.
        Args:
            circuit: The circuit to be run
            param_resolver: Param resolver for the
        Returns:
            json serialized string
        
cirq-pasqal/cirq_pasqal/pasqal_sampler.py