original_docstring: Estimate TQ errors based on error_dict.
docstring: Estimate TQ errors based on error_dict.
docstring_tokens: Estimate TQ errors based on error_dict .
code: def estimate_errors(error_dict: dict):
      """Estimate TQ errors based on error_dict."""
  
      tq_dep = 1
      sq_dep = 1
      if 'tq_dep' in error_dict:
          tq_dep *= convert(1 - error_dict['tq_dep'], 4, 'avg', 'dep')
          
      if 'tq_coh' in error_dict:
          tq_dep *= convert(1 - error_dict['tq_coh'], 4, 'avg', 'dep')
          
      if 'sq_dep' in error_dict:
          sq_dep *= convert(1 - error_dict['sq_dep'], 2, 'avg', 'dep')
          
      if 'sq_coh' in error_dict:
          sq_dep *= convert(1 - error_dict['sq_coh'], 2, 'avg', 'dep')
  
      if 'sq_dph' in error_dict:
          sq_dep *= convert(1 - error_dict['sq_dph'], 2, 'avg', 'dep')
      
      if 'tq_dph' in error_dict:
          tq_dep *= convert(1 - error_dict['tq_dph'], 2, 'avg', 'dep')
      
      sq_dep = convert(convert(sq_dep, 2, 'dep', 'proc') ** 2, 4, 'proc', 'dep')
      
      slice_fid = convert(sq_dep * tq_dep, 4, 'dep', 'avg')
      
      return slice_fid
code_tokens: def estimate_errors ( error_dict : dict ) : tq_dep = 1 sq_dep = 1 if 'tq_dep' in error_dict : tq_dep *= convert ( 1 - error_dict [ 'tq_dep' ] , 4 , 'avg' , 'dep' ) if 'tq_coh' in error_dict : tq_dep *= convert ( 1 - error_dict [ 'tq_coh' ] , 4 , 'avg' , 'dep' ) if 'sq_dep' in error_dict : sq_dep *= convert ( 1 - error_dict [ 'sq_dep' ] , 2 , 'avg' , 'dep' ) if 'sq_coh' in error_dict : sq_dep *= convert ( 1 - error_dict [ 'sq_coh' ] , 2 , 'avg' , 'dep' ) if 'sq_dph' in error_dict : sq_dep *= convert ( 1 - error_dict [ 'sq_dph' ] , 2 , 'avg' , 'dep' ) if 'tq_dph' in error_dict : tq_dep *= convert ( 1 - error_dict [ 'tq_dph' ] , 2 , 'avg' , 'dep' ) sq_dep = convert ( convert ( sq_dep , 2 , 'dep' , 'proc' ) ** 2 , 4 , 'proc' , 'dep' ) slice_fid = convert ( sq_dep * tq_dep , 4 , 'dep' , 'avg' ) return slice_fid
short_docstring: Estimate TQ errors based on error_dict.
short_docstring_tokens: Estimate TQ errors based on error_dict .
comment: """Estimate TQ errors based on error_dict."""