This repo is still in the early stages of development, there will be breaking API changes
Arraylias is an open-source Python library providing single-dispatching tools centred around the construction of an aliased module. Aliased modules are built by initially registering "libraries" consisting of a collection of types, then registering different versions of a given function in the aliased module for each underlying type library. When using the aliased module, function calls are automatically dispatched to version of the function for the correct library based on the type of the first argument.
Arraylias contains default pre-built aliased versions of both NumPy and Scipy, with additional registration of the JAX and Tensorflow array libraries. This enables writing NumPy and Scipy like code that will execute on NumPy, JAX, and Tensorflow array objects as if it had been written in the respective native libraries. If necessary, these default aliases can be further extended to fit the needs of the application.
Reference documentation may be found here, including tutorials, user guide, and API reference.
Arraylias is installed by using pip
:
pip install arraylias
If you'd like to contribute to Arraylias, please take a look at our contribution guidelines. This project adheres to Qiskit's code of conduct. By participating, you are expected to uphold this code.
We use GitHub issues for tracking requests and bugs. For questions that are more suited for a forum we use the Qiskit tag in the Stack Exchange.