IBMExperimentService.create_experiment¶
- IBMExperimentService.create_experiment(data, provider=None, json_encoder=<class 'json.encoder.JSONEncoder'>)[source]¶
Create a new experiment in the database.
- Parameters:
data (
ExperimentData
) – The dataclass containing the experiment’s dataprovider (
Optional
[Any
]) – The provider used when running the experimentjson_encoder (
Type
[JSONEncoder
]) – Custom JSON encoder to use to encode the experiment.
- Return type:
dict
- Returns:
Experiment ID.
- Raises:
IBMExperimentEntryExists – If the experiment already exits.
IBMApiError – If the request to the server failed.
- Returns:
The upload response data