Operation.get_unitary_and_grad

Operation.get_unitary_and_grad(params=[])[source]

Return the unitary and gradient for this gate.

See Gate for more info.

Return type:

tuple[UnitaryMatrix, complex128]