Skip to content

Commit

Permalink
update metadata (Qiskit#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyu00 authored and GitHub Enterprise committed Nov 10, 2021
1 parent dc10811 commit 1ff1cba
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 79 deletions.
74 changes: 59 additions & 15 deletions runtime/estimator.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,63 @@
"name": "estimator",
"description": "Expectation value estimator. A runtime program that estimates the value of an observable for an input quantum circuit. This program is in beta mode and is only available to select accounts.",
"max_execution_time": 18000,
"version": "0.1",
"parameters": [
{"name": "circuit", "description": "A parameterized or non-parameterized quantum circuit.", "type": "QuantumCircuit", "required": true},
{"name": "observable", "description": "The Hamiltonian to be evaluated.", "type": "list[tuple[str, float]]", "required": true},
{"name": "parameters", "description": "The parameters to be bound.", "type": "Union[list[float], list[list[float]]]", "required": false},
{"name": "class_name", "description": "The name of the evaluator class.", "type": "str", "required": false},
{"name": "transpile_options", "description": "Options for transpile.", "type": "dict", "required": false},
{"name": "run_options", "description": "Options for backend run.", "type": "dict", "required": false},
{"name": "measurement_error_mitigation", "description": "Whether to apply measurement error mitigation. Default is False.", "type": "bool", "required": false}
],
"return_values": [
{"name": "value", "description": "Estimated expectation value.", "type": "float"},
{"name": "variance", "description": "Variance of expectations.", "type": "float"},
{"name": "confidence_interval", "description": "The confidence interval.", "type": "Tuple[float, float]"}
]
"spec": {
"parameters": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"properties": {
"circuit": {
"description": "A parameterized or non-parameterized QuantumCircuit.",
"type": "object"
},
"observable": {
"description": "The Hamiltonian to be evaluated. This is a list[tuple[str, float]].",
"type": "array"
},
"parameters": {
"description": "The parameters to be bound. This can be either a list[float] or list[list[float]]].",
"type": "array"
},
"class_name": {
"description": "The name of the evaluator class. Default is PauliExpectationValue.",
"type": "string",
"default": "PauliExpectationValue"
},
"transpile_options": {
"description": "Options for transpile.",
"type": "object"
},
"run_options": {
"description": "Options for backend run.",
"type": "object"
},
"measurement_error_mitigation": {
"description": "Whether to apply measurement error mitigation. Default is False.",
"type": "boolean",
"default": false
}
},
"required": [
"circuits",
"observable",
"parameters"
]
},
"return_values": {
"$schema": "https://json-schema.org/draft/2019-09/schema",
"properties": {
"value": {
"description": "Estimated expectation value. This is a float.",
"type": "number"
},
"variance": {
"description": "Variance of expectations. This is a float.",
"type": "number"
},
"confidence_interval": {
"description": "The confidence interval. This is a tuple[float, float].",
"type": "array"
}
}
}
}
}
64 changes: 0 additions & 64 deletions runtime/new_metadata/estimator.json

This file was deleted.

0 comments on commit 1ff1cba

Please sign in to comment.