RightMultiplicationNode¶
- class samplomatic.samplex.nodes.RightMultiplicationNode(operand: GroupRegister, register_name: str)[source]¶
Bases:
MultiplicationNodePerform right multiplication of a fixed register against a given register.
- Parameters:
operand – The fixed group elements by which to multiply.
register_name – The name of the register to multiply with.
- Raises:
SamplexConstructionError – If
operandhas more than one sample.
Methods Summary
evaluate(registers, *_)Evaluate this node.
Methods Documentation
- evaluate(registers: dict[str, VirtualRegister], *_)[source]¶
Evaluate this node.
- Parameters:
registers – At least those registers needed by this node to read from or write to.
parameter_values – Parameter values to use during evaluation.
- Raises:
SamplexRuntimeError – If the number of parameter values received does not equal the number required by this node.