You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
This PR adds docstring documentation for raised errors. This resolves#143.
## Checklist:
<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->
- [x] The pull request only contains commits that are focused and
relevant to this change.
- [x] I have added appropriate tests that cover the new/changed
functionality.
- [x] I have updated the documentation to reflect these changes.
- [x] I have added entries to the changelog for any noteworthy
additions, changes, fixes, or removals.
- [x] The changes follow the project's style guidelines and introduce no
new warnings.
- [x] The changes are fully tested and pass the CI checks.
- [x] I have reviewed my own code changes.
device: The target device to be used for compilation.
80
+
reward_function: The figure of merit to be used for the reward function. Defaults to "expected_fidelity".
81
+
path_training_circuits: The path to the training circuits folder. Defaults to None, which uses the default path.
82
+
83
+
Raises:
84
+
ValueError: If the reward function is "estimated_success_probability" and no calibration data is available for the device or if the reward function is "estimated_hellinger_distance" and no trained model is available for the device.
"""Executes the given action and returns the new state, the reward, whether the episode is done, whether the episode is truncated and additional information."""
168
+
"""Executes the given action and returns the new state, the reward, whether the episode is done, whether the episode is truncated and additional information.
169
+
170
+
Arguments:
171
+
action: The action to be executed, represented by its index in the action set.
172
+
173
+
Returns:
174
+
A tuple containing the new state as a feature dictionary, the reward value, whether the episode is done, whether the episode is truncated, and additional information.
0 commit comments