@@ -575,7 +575,11 @@ def get_processor(self, processor_id: str) -> engine_processor.EngineProcessor:
575575 return engine_processor .EngineProcessor (self .project_id , processor_id , self .context )
576576
577577 def get_sampler (
578- self , processor_id : Union [str , List [str ]], run_name : str = "" , device_config_name : str = ""
578+ self ,
579+ processor_id : Union [str , List [str ]],
580+ run_name : str = "" ,
581+ device_config_name : str = "" ,
582+ snapshot_id : str = "" ,
579583 ) -> 'cirq_google.ProcessorSampler' :
580584 """Returns a sampler backed by the engine.
581585
@@ -587,6 +591,8 @@ def get_sampler(
587591 device_config_name: An identifier used to select the processor configuration
588592 utilized to run the job. A configuration identifies the set of
589593 available qubits, couplers, and supported gates in the processor.
594+ snapshot_id: A unique identifier for an immutable snapshot reference. A
595+ snapshot contains a collection of device configurations for the processor.
590596
591597 Returns:
592598 A `cirq.Sampler` instance (specifically a `engine_sampler.ProcessorSampler`
@@ -603,7 +609,7 @@ def get_sampler(
603609 'you need to specify a list.'
604610 )
605611 return self .get_processor (processor_id ).get_sampler (
606- run_name = run_name , device_config_name = device_config_name
612+ run_name = run_name , device_config_name = device_config_name , snapshot_id = snapshot_id
607613 )
608614
609615
0 commit comments