From 8dd8c7d4059e660d87bf2404fe6b080c14ed9bae Mon Sep 17 00:00:00 2001 From: Lauren Capelluto Date: Mon, 6 Nov 2023 15:51:04 -0500 Subject: [PATCH] documentation: Improve docstring for make_bound_circuit (#784) --- src/braket/circuits/circuit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/braket/circuits/circuit.py b/src/braket/circuits/circuit.py index 81139e9e4..76e986087 100644 --- a/src/braket/circuits/circuit.py +++ b/src/braket/circuits/circuit.py @@ -855,8 +855,8 @@ def make_bound_circuit(self, param_values: dict[str, Number], strict: bool = Fal Args: param_values (dict[str, Number]): A mapping of FreeParameter names to a value to assign to them. - strict (bool): If True, raises a ValueError if none of the FreeParameters - in param_values appear in the circuit. False by default." + strict (bool): If True, raises a ValueError if any of the FreeParameters + in param_values do not appear in the circuit. False by default. Returns: Circuit: Returns a circuit with all present parameters fixed to their respective @@ -875,8 +875,8 @@ def _validate_parameters(self, parameter_values: dict[str, Number]) -> None: to a value to assign to them. Raises: - ValueError: If there are no parameters that match the key for the arg - param_values. + ValueError: If a parameter name is given which does not appear in the circuit. + """ parameter_strings = set() for parameter in self.parameters: