-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
When installing covalent, it currently install the 0.32 version of Pennylane which has its qnode specs dictionary different than 0.31 -> on which qelectrons were developed. Our QNodeSpecs class will need to be updated to make it compatible with their latest version. This means if a user tries to run their circuit they will encounter the following error:
...
pydantic_core._pydantic_core.ValidationError: 5 validation errors for QNodeSpecs
gate_sizes
Field required [type=missing, input_value={'resources': Resources(n...t', 'gradient_fn': None}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
gate_types
Field required [type=missing, input_value={'resources': Resources(n...t', 'gradient_fn': None}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
num_operations
Field required [type=missing, input_value={'resources': Resources(n...t', 'gradient_fn': None}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
num_used_wires
Field required [type=missing, input_value={'resources': Resources(n...t', 'gradient_fn': None}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
depth
Field required [type=missing, input_value={'resources': Resources(n...t', 'gradient_fn': None}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missingWorkaround/Temporary Solution
Installing the 0.31 version seems to have worked, until we update the QNodeSpecs class
pip install pennylane==0.31.1Metadata
Metadata
Assignees
Labels
No labels