Module: tfq.differentiators

View source on GitHub

Module functions for tfq.differentiators.*


class CentralDifference: Differentiates a circuit using Central Differencing.

class Differentiator: Interface that defines how to specify gradients for a quantum circuit.

class ForwardDifference: Differentiate a circuit using forward differencing.

class LinearCombination: Differentiate a circuit with respect to its inputs by

class ParameterShift: Calculate the general version of parameter-shift rule based gradients.

class SGDifferentiator: Stochastic generator based differentiator class.