Circuit.get_unitary_and_grad

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

Return the unitary and gradient of the circuit.

Return type:

tuple[UnitaryMatrix, npt.NDArray[np.complex128]]