VariableUnitaryGate.get_unitary

VariableUnitaryGate.get_unitary(params=[])[source]

Return the unitary for this gate, see Unitary for more.

Note

Ideally, params form a unitary matrix when reshaped, however, params are unconstrained so we return the closest UnitaryMatrix to the given matrix.