---
title: U2ParametricMultiplicationNode (latest version)
description: API reference for samplomatic.samplex.nodes.U2ParametricMultiplicationNode in the latest version of samplomatic
source: https://quantum.cloud.ibm.com/docs/en/api/samplomatic/auto/samplex-nodes-u-2-parametric-multiplication-node
---

# U2ParametricMultiplicationNode

*class* `samplomatic.samplex.nodes.U2ParametricMultiplicationNode(operand: Literal['rz', 'rx'], register_name: str, param_idxs: list[int])`

[GitHub](https://github.com/Qiskit/samplomatic/tree/main/samplomatic/samplex/nodes/u2_param_multiplication_node.py#L27-L93)

Bases: [`EvaluationNode`](/docs/api/samplomatic/auto/samplex-nodes-evaluation-node "samplomatic.samplex.nodes.evaluation_node.EvaluationNode")

Abstract parent node for nodes doing multiplication on a [`U2Register`](/docs/api/samplomatic/auto/virtual-registers-u-2-register "samplomatic.virtual_registers.U2Register").

The node stores a parametric representation of a one-qubit gate or gates from the original circuit to perform multiplication on a registry.

Limited to the gates `rz` or `rx`, and all gates within the node are of the same type.

**Parameters**

- **operand** – The gate type, given as a string.
- **register\_name** – The name of the register the operation is applied to.
- **param\_idxs** – List of `ParamIndex` for the parameter expressions specifying the gate arguments. List order must match the order subsystems in the registry.

**Raises**

- [**SamplexConstructionError**](/docs/api/samplomatic/auto/exceptions-samplex-construction-error "samplomatic.exceptions.SamplexConstructionError") – if param\_idxs is empty.
- [**SamplexConstructionError**](/docs/api/samplomatic/auto/exceptions-samplex-construction-error "samplomatic.exceptions.SamplexConstructionError") – if operand is not `rz` or `rx`.

**Attributes Summary**

|                                                                                                                                                                                                |                                                                                   |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [`outgoing_register_type`](#samplomatic.samplex.nodes.U2ParametricMultiplicationNode.outgoing_register_type "samplomatic.samplex.nodes.U2ParametricMultiplicationNode.outgoing_register_type") | The virtual gate type of outgoing registers.                                      |
| [`parameter_idxs`](#samplomatic.samplex.nodes.U2ParametricMultiplicationNode.parameter_idxs "samplomatic.samplex.nodes.U2ParametricMultiplicationNode.parameter_idxs")                         | Which evaluated parameter expressions this node needs access to at sampling time. |

**Methods Summary**

|                                                                                                                                                           |                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [`get_style`](#samplomatic.samplex.nodes.U2ParametricMultiplicationNode.get_style "samplomatic.samplex.nodes.U2ParametricMultiplicationNode.get_style")() | Return the style of this node when plotted.                                     |
| [`writes_to`](#samplomatic.samplex.nodes.U2ParametricMultiplicationNode.writes_to "samplomatic.samplex.nodes.U2ParametricMultiplicationNode.writes_to")() | Return a manifest of which virtual register values this node needs to write to. |

**Attributes Documentation**

### outgoing\_register\_type

### parameter\_idxs

Which evaluated parameter expressions this node needs access to at sampling time.

**Methods Documentation**

### get\_style

`get_style()`

[GitHub](https://github.com/Qiskit/samplomatic/tree/main/samplomatic/samplex/nodes/u2_param_multiplication_node.py#L71-L77)

Return the style of this node when plotted.

### writes\_to

`writes_to() → dict[str, tuple[set[int], type[VirtualType]]]`

[GitHub](https://github.com/Qiskit/samplomatic/tree/main/samplomatic/samplex/nodes/u2_param_multiplication_node.py#L88-L89)

Return a manifest of which virtual register values this node needs to write to.
