From 1ff1cbad3240519e4f1706f7b3571a3a712e5884 Mon Sep 17 00:00:00 2001 From: JESSIE YU Date: Wed, 10 Nov 2021 10:42:45 -0500 Subject: [PATCH] update metadata (#88) --- runtime/estimator.json | 74 +++++++++++++++++++++++------ runtime/new_metadata/estimator.json | 64 ------------------------- 2 files changed, 59 insertions(+), 79 deletions(-) delete mode 100644 runtime/new_metadata/estimator.json diff --git a/runtime/estimator.json b/runtime/estimator.json index ae968ab73..bc07e5005 100644 --- a/runtime/estimator.json +++ b/runtime/estimator.json @@ -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" + } + } + } + } } diff --git a/runtime/new_metadata/estimator.json b/runtime/new_metadata/estimator.json deleted file mode 100644 index bc07e5005..000000000 --- a/runtime/new_metadata/estimator.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "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, - "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" - } - } - } - } -}