qml.VQECost

class VQECost(*args, **kwargs)[source]

Bases: pennylane.vqe.vqe.ExpvalCost

Create a cost function that gives the expectation value of an input Hamiltonian.

Warning

Use of VQECost is deprecated and should be replaced with ExpvalCost.

__call__(*args, **kwargs)

Call self as a function.

__call__(*args, **kwargs)

Call self as a function.

Contents

Using PennyLane

Development

API