Skip to content

Commit

Permalink
VQE runtime program (Qiskit#22)
Browse files Browse the repository at this point in the history
* add vqe

* use Qiskits VQE class in runtime and add readout error mitigation

* fix serialization

* fix import

* suppress warnings

* interim results

* update to batch-evaluation and names from Qiskit#31

* uncomment final result dump

* fix notebook syntax

Co-authored-by: Julien Gacon <gaconju@gmail.com>
  • Loading branch information
2 people authored and GitHub Enterprise committed Apr 15, 2021
1 parent 360f00c commit 49041c9
Show file tree
Hide file tree
Showing 3 changed files with 1,429 additions and 0 deletions.
15 changes: 15 additions & 0 deletions runtime/program_doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,20 @@
"return_values": [
{"name": "results", "description": "Circuit execution results.", "type": "qiskit.result.Result object"}
]
},
{ "name": "VQE",
"description": "A runtime program that takes a Hamiltonian as an input and return the optimization.",
"id": "VQE",
"parameters": [
{"name": "observable", "description": "N-qubit operator in a Pauli basis representation.", "type": "PauliSumOp.", "required": true},
{"name": "circuit", "description": "The variational circuit whose parameters to optimize.", "type": "QuantumCircuit", "required": true},
{"name": "optimizer", "description": "Classical optimizer to be used (\"SPSA\", or \"QN-SPSA\").", "type": "string", "required": true},
{"name": "optimizer_params", "description": "Parameters required by the optimizer (e.g. learning rates, initial points, number of iterations, etc.).", "type": "dict", "required": false},
{"name": "initial_point", "description": "Initial point. A numpy array or \"random\".", "type": "numpy.ndarray", "required": false},
{"name": "readout_error_mitigation", "description": "Whether readout error mitigation is to be applied. Default is False.", "type": "boolean", "required": false}
],
"return_values": [
{"name": "n/a", "description": "Minimum eigensolver result.", "type": "MinimumEigensolverResult"}
]
}
]
Loading

0 comments on commit 49041c9

Please sign in to comment.