def get_resources(self, circuit: Union[(Circuit, ResultHandle)]) -> ResourcesResult:
    'Calculate resource estimates for circuit.\n\n        :param circuit: Circuit to calculate or result handle to retrieve for\n        :type circuit: Union[Circuit, ResultHandle]\n        :return: Resource estimate\n        :rtype: Dict[str, int]\n        '
    if isinstance(circuit, Circuit):
        handle = self.process_circuits([circuit])[0]
    elif isinstance(circuit, ResultHandle):
        handle = circuit
        circ_status = self.circuit_status(handle)
        if (circ_status.status is not StatusEnum.COMPLETED):
            raise ValueError(f"Handle is '{circ_status}'")
    else:
        raise TypeError('Provide either a Circuit to run or a ResultHandle to a previously submitted circuit.')
    return self._cache[handle]['resource']
Calculate resource estimates for circuit.

:param circuit: Circuit to calculate or result handle to retrieve for
:type circuit: Union[Circuit, ResultHandle]
:return: Resource estimate
:rtype: Dict[str, int]
def get_resources(self, circuit: Union[(Circuit, ResultHandle)]) -> ResourcesResult:
    'Calculate resource estimates for circuit.\n\n        :param circuit: Circuit to calculate or result handle to retrieve for\n        :type circuit: Union[Circuit, ResultHandle]\n        :return: Resource estimate\n        :rtype: Dict[str, int]\n        '
    if isinstance(circuit, Circuit):
        handle = self.process_circuits([circuit])[0]
    elif isinstance(circuit, ResultHandle):
        handle = circuit
        circ_status = self.circuit_status(handle)
        if (circ_status.status is not StatusEnum.COMPLETED):
            raise ValueError(f"Handle is '{circ_status}'")
    else:
        raise TypeError('Provide either a Circuit to run or a ResultHandle to a previously submitted circuit.')
    return self._cache[handle]['resource']