@propertydeffailed_shot_index(self)->int:"""The index of the shot that failed."""returnlen(self.completed_shots.results)
classEmulatorBuildError(Exception):underlying_exception:Exception|Nonedef__init__(self,underlying_exception:Exception|None=None):super().__init__("Building the emulator failed with the following exception: "+str(underlying_exception))self.underlying_exception=underlying_exception