YGate.check_parameters

YGate.check_parameters(params)

Check parameters are valid and match the unitary.

Parameters:

params (Sequence[float] | float64 | float32) – The parameters to check.

Raises:

ValueError – If parameter length does not match expected number.

Return type:

None