TNO Quantum provides generic software components aimed at facilitating the development of quantum applications.
This package contains implementations of QUBO preprocessors.
Documentation of the tno.quantum.optimization.qubo.preprocessors
package can be found here.
Easily install the tno.quantum.optimization.qubo.preprocessors
package using pip:
$ python -m pip install tno.quantum.optimization.qubo.preprocessors
The following example shows how to list the available preprocessor and how to instantiate them.
from tno.quantum.optimization.qubo.components import PreprocessorConfig
supported_preprocessors = PreprocessorConfig.supported_items()
preprocessor = PreprocessorConfig(name='q_pro_plus_preprocessor').get_instance()
Alternatively, a preprocessor can also be instantiated directly.
from tno.quantum.optimization.qubo.preprocessors import QProPlusPreprocessor
preprocessor = QProPlusPreprocessor(max_iter=10)
The content of this software may solely be used for applications that comply with international export control laws.