Skip to content

Commit

Permalink
Remove no longer needed functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter2206 committed Jul 3, 2024
1 parent 1c93f0e commit 185e4f4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/bartiq/compilation/_symbolic_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,6 @@ def parse_output_expressions(
return [DependentVariable(key, backend.as_expression(value), backend) for key, value in output_expressions.items()]


def parse_output_expression(output_expression: str, backend: SymbolicBackend[T_expr]) -> DependentVariable[T_expr]:
"""Parses a single output expression string to an output variable."""
return DependentVariable.from_str(output_expression, backend)


def _merge_functions(
function_1: SymbolicFunction[T_expr], function_2: SymbolicFunction[T_expr]
) -> SymbolicFunction[T_expr]:
Expand Down Expand Up @@ -215,12 +210,6 @@ def _merge_functions(
return SymbolicFunction(inputs_new, outputs_new)


def _serialize_variables(variables: Union[dict[str, IndependentVariable], dict[str, DependentVariable]]) -> list[str]:
"""Serializes variables."""
assert isinstance(variables, dict)
return [str(variable) for variable in variables.values()]


def _verify_symbolic_function(function: SymbolicFunction) -> None:
"""No monkey business allowed."""
_verify_inputs_are_independent_variables(function)
Expand Down

0 comments on commit 185e4f4

Please sign in to comment.