tensorcircuit.cloud.utilsΒΆ
utility functions for cloud connection
- exception tensorcircuit.cloud.utils.HttpStatusError[source]ΒΆ
Bases:
ExceptionUsed when the return request has http code beyond 200
- __init__(*args, **kwargs)ΒΆ
- argsΒΆ
- with_traceback()ΒΆ
Exception.with_traceback(tb) β set self.__traceback__ to tb and return self.
- tensorcircuit.cloud.utils.reconnect(tries: int = 5, timeout: int = 12) Callable[[...], Any][source]ΒΆ
- tensorcircuit.cloud.utils.set_proxy(proxy: str | None = None) None[source]ΒΆ
- Parameters:
proxy β str. format as βhttp://user:passwd@host:portβ user passwd part can be omitted if not set. None for turning off the proxy.
- Returns: