CirQuS-UTS / QuanGuru

QuanGuru (pronounced Kangaroo) is a Python library for numerical modelling of quantum systems. It is still under-development, and it consists of tools for numerical simulations of Quantum systems.
BSD 3-Clause "New" or "Revised" License
5 stars 7 forks source link

Modifying QTerms class to allow for extra arguments in operator #242

Open TreeratKJ opened 1 year ago

TreeratKJ commented 1 year ago

Context: The (composite) operators of the QTerms are calculated from its static method called _dimInput and the matrices of operators are stored in _paramBoundBase__matrix. The _dimInput method requires only qsys and operator function and this method calculates the dimension from sys.dimension to create the matrix of operator.

Goal: QTerms class would be able to access other parameters of the operator, not just dimension.

Idea: Modify the way to define attributes for QTerms object such that can add other attributes, which are NOT in the __slots__, to privateDict and we can access and use this privateDict