SymbolGeneratorΒΆ

SymbolGenerator(arg=None) VariableGenerator | BinarySymbolGenerator | IsingSymbolGeneratorΒΆ

Make a generator of variables. Deprecated.

Use VariableGenerator and give the type of the variable to each of its methods.

Parameters:

arg – The class of the polynomial that decides the type of the variable. None gives a VariableGenerator, BinaryPoly gives a BinarySymbolGenerator, and IsingPoly gives an IsingSymbolGenerator.

Returns:

The generator that arg selected.

Raises:

TypeError – arg is not None, BinaryPoly, or IsingPoly.