PowerGate.get_grad

PowerGate.get_grad(params=[])[source]

Return the gradient for this gate.

See DifferentiableUnitary for more info.

Notes

The derivative of the integer power of matrix is equal to the derivative of the matrix multiplied by the integer-1 power of the matrix and by the integer power.

Return type:

complex128