Variables¶
Real Number¶
Real Number Class¶
- class engioptiqa.variables.real_number.RealNumber(n_qubits, binary_representation, a_min=None, a_max=None)¶
Base class for representing real numbers, dispatching to a specific binary representation subclass. The specific representation is determined by the ‘binary_representation’ argument passed to the constructor. The base class itself is not meant to be instantiated directly, but rather serves as a factory for creating instances of the appropriate subclass based on the specified binary representation.
Normalized Class¶
- class engioptiqa.variables.real_number.Normalized(n_qubits, binary_representation, a_min=None, a_max=None)¶
Normalized representation of a real number in the range [0, 1].
Range Class¶
- class engioptiqa.variables.real_number.Range(n_qubits, binary_representation, a_min=None, a_max=None)¶
Range representation of a real number in the range [a_min, a_max].