Skip to content

Commit

Permalink
avoid pydantic warning for gradient_fn field
Browse files Browse the repository at this point in the history
  • Loading branch information
araghukas committed Sep 12, 2023
1 parent 8d5d509 commit 7e4906e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion covalent/_shared_files/qinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class QNodeSpecs(BaseModel):
expansion_strategy: str
gradient_options: Dict[str, int]
interface: Optional[str]
gradient_fn: Optional[str]
gradient_fn: Any # can be string or `qml.gradients.gradient_transform`
num_gradient_executions: Any = 0
num_parameter_shift_executions: int = None

Expand Down

0 comments on commit 7e4906e

Please sign in to comment.