dwave.optimization.model.ArraySymbol.shape#

ArraySymbol.shape()#

Return the shape of the symbol.

Examples

This example returns the shape of a newly instantiated symbol.

>>> from dwave.optimization import Model
>>> model = Model()
>>> x = model.binary(20)
>>> x.shape()
(20,)