@@ -575,7 +575,11 @@ def get_processor(self, processor_id: str) -> engine_processor.EngineProcessor:
575
575
return engine_processor .EngineProcessor (self .project_id , processor_id , self .context )
576
576
577
577
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 = "" ,
579
583
) -> 'cirq_google.ProcessorSampler' :
580
584
"""Returns a sampler backed by the engine.
581
585
@@ -587,6 +591,8 @@ def get_sampler(
587
591
device_config_name: An identifier used to select the processor configuration
588
592
utilized to run the job. A configuration identifies the set of
589
593
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.
590
596
591
597
Returns:
592
598
A `cirq.Sampler` instance (specifically a `engine_sampler.ProcessorSampler`
@@ -603,7 +609,7 @@ def get_sampler(
603
609
'you need to specify a list.'
604
610
)
605
611
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
607
613
)
608
614
609
615
0 commit comments