VariableNamesError ¶
Bases: Exception
The provided variable names are invalid.
Raised when the QuboTranslator tries to create a model from a QUBO matrix, but the provided variable names are invalid.
If variable names are provided to the QuboTranslator, they have to be unique, and the number of names has to match the number of variables in the QUBO matrix.