# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License
from pydantic.v1 import BaseModel, Field, conint, conlist
from braket.schema_common import BraketSchemaBase, BraketSchemaHeader
[docs]
class DwaveTiming(BaseModel):
"""
The D-Wave timing metadata result schema.
The times represented are in microseconds.
Examples:
>>> DwaveTiming(qpuSamplingTime=1575, qpuAnnealTimePerSample=20)
"""
qpuSamplingTime: conint(ge=0) | None
qpuAnnealTimePerSample: conint(ge=0) | None
qpuAccessTime: conint(ge=0) | None
qpuAccessOverheadTime: conint(ge=0) | None
qpuReadoutTimePerSample: conint(ge=0) | None
qpuProgrammingTime: conint(ge=0) | None
qpuDelayTimePerSample: conint(ge=0) | None
postProcessingOverheadTime: conint(ge=0) | None
totalPostProcessingTime: conint(ge=0) | None
totalRealTime: conint(ge=0) | None
runTimeChip: conint(ge=0) | None
annealTimePerRun: conint(ge=0) | None
readoutTimePerRun: conint(ge=0) | None