dwave.optimization.model.Symbol.state_size#

Symbol.state_size()#

Return an estimated size, in bytes, of the symbol’s state.

The state size, set at construction of the symbol, accounts for the largest possible size for symbols.

The size of an instantiated state can be accessed with .state().size (for example, the size of a symbol num_routes is given by num_routes.state().size).

Note

For most symbols, which are arrays, this method is subclassed by the state_size method.

Returns:

Always returns zero (nodes do not have a state).