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 withExpvalCost
.Methods
code/api/pennylane.VQECost
Download Python script
Download Notebook
View on GitHub