tensorcircuit.backends.backend_factory#

Backend register

tensorcircuit.backends.backend_factory.get_backend(backend: Union[str, Any]) Any[源代码]#

Get the tc.backend object.

参数

backend (Union[Text, tnbackend]) -- "numpy", "tensorflow", "jax", "pytorch"

引发

ValueError -- Backend doesn't exist for backend argument.

返回

The tc.backend object that with all registered universal functions.

返回类型

backend object