Skip to content

Non-functioning first draft of plxpr defer_measurements

codefactor.io / CodeFactor succeeded Jan 15, 2025 in 3s

5 minor issues found.

Annotations

Check notice on line 168 in pennylane/transforms/defer_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/transforms/defer_measurements.py#L168

Attribute '_env' defined outside __init__ (attribute-defined-outside-init)

Check notice on line 234 in pennylane/transforms/defer_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/transforms/defer_measurements.py#L234

Unused argument 'self' (unused-argument)

Check notice on line 204 in pennylane/transforms/defer_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/transforms/defer_measurements.py#L204

Attribute '_env' defined outside __init__ (attribute-defined-outside-init)

Check notice on line 258 in pennylane/transforms/defer_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/transforms/defer_measurements.py#L258

Redefining name 'defer_measurements_plxpr_to_plxpr' from outer scope (line 272) (redefined-outer-name)

Check notice on line 123 in pennylane/transforms/defer_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/transforms/defer_measurements.py#L123

Redefining name 'DeferMeasurementsInterpreter' from outer scope (line 272) (redefined-outer-name)