adjoint#
Adjoint differentiation
Classes
|
Adjoint differentiation |
- class AdjointExpectation(*args, **kwargs)[source]#
Bases:
FunctionAdjoint differentiation
See https://arxiv.org/pdf/2009.02823
- Parameters:
state – The final quantum state.
operators – The quantum operations.
observable – The observable.
*parameters – The parameters of the quantum circuit.
- static forward(ctx, state: DistributedQubitState, operators: Sequential, observable: Observable, *parameters: Tensor) Tensor[source]#