code: def _one_prob_per_shard(args: Dict[str, Any]) -> float:
      
      index = args['index']
  
      state = _state_shard(args) * _one_projector(args, index)
      norm = np.linalg.norm(state)
      return norm * norm
docs: Returns the probability of getting a one measurement on a state shard.