quairkit.core.state.backend
The module that implements various backends of the state.
-
quairkit.core.state.backend.BACKEND_LIST : Dict[str, Type[State]] =
{'default': <class 'quairkit.core.state.backend.default.DefaultSimulator'>}
Default simulator for the state backend.
-
quairkit.core.state.backend.set_backend(backend)
Set the backend implementation of QuAIRKit state.
- Parameters:
- backend : str | State
The name of the backend.
-
quairkit.core.state.backend.get_backend(backend=
None
)
Get the current backend of QuAIRKit.
- Parameters:
- backend : str | None
The name of the backend.
- Returns:
The state initializer of currently used backend.
- Return type:
Type[StateOperator] | Type[StateSimulator]