class PulseDefaultsSchema(BaseSchema): """Schema for PulseDefaults.""" # Required properties. qubit_freq_est = fields.List(fields.Number(), required=True, validate=Length(min=1)) meas_freq_est = fields.List(fields.Number(), required=True, validate=Length(min=1)) buffer = fields.Integer(required=True, validate=Range(min=0)) pulse_library = fields.Nested(PulseLibraryItemSchema, required=True, many=True) cmd_def = fields.Nested(CommandSchema, many=True, required=True) # Optional properties. meas_kernel = fields.Nested(MeasurementKernelSchema) discriminator = fields.Nested(DiscriminatorSchema)
class NduvSchema(BaseSchema): """Schema for name-date-unit-value.""" # Required properties. date = fields.DateTime(required=True) name = fields.String(required=True) unit = fields.String(required=True) value = fields.Number(required=True)