Skip to content

initial test

2e21cb8
Select commit
Loading
Failed to load commit list.
Merged

Redefine ApplyRegisteredPass in the Transform dialect #7956

initial test
2e21cb8
Select commit
Loading
Failed to load commit list.
codefactor.io / CodeFactor succeeded Jul 24, 2025 in 2s

44 minor issues found.

Annotations

Check notice on line 75 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L75

Undefined variable 'StringAttr' (undefined-variable)

Check notice on line 59 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L59

Undefined variable 'operand_def' (undefined-variable)

Check notice on line 115 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L115

Undefined variable 'SequenceOp' (undefined-variable)

Check notice on line 50 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L50

Too few public methods (0/2) (too-few-public-methods)

Check notice on line 112 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L112

Undefined variable 'MergeHandlesOp' (undefined-variable)

Check notice on line 108 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L108

Undefined variable 'IncludeOp' (undefined-variable)

Check notice on line 58 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L58

Undefined variable 'StringAttr' (undefined-variable)

Check notice on line 71 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L71

Undefined variable 'ParsePropInAttrDict' (undefined-variable)

Check notice on line 103 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L103

Undefined variable 'GetDefiningOp' (undefined-variable)

Check notice on line 122 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L122

Undefined variable 'MatchOp' (undefined-variable)

Check notice on line 102 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L102

Undefined variable 'GetConsumersOfResultOp' (undefined-variable)

Check notice on line 118 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L118

Undefined variable 'TileToForallOp' (undefined-variable)

Check notice on line 113 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L113

Undefined variable 'ParamConstantOp' (undefined-variable)

Check notice on line 59 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L59

Undefined variable 'TransformHandleType' (undefined-variable)

Check notice on line 126 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L126

Undefined variable 'AffineMapType' (undefined-variable)

Check notice on line 127 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L127

Undefined variable 'AnyOpType' (undefined-variable)

Check notice on line 132 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L132

Undefined variable 'TypeParamType' (undefined-variable)

Check notice on line 120 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L120

Undefined variable 'NamedSequenceOp' (undefined-variable)

Check notice on line 134 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L134

Undefined variable 'FailurePropagationModeAttr' (undefined-variable)

Check notice on line 50 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L50

Undefined variable 'IRDLOperation' (undefined-variable)

Check notice on line 109 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L109

Undefined variable 'MatchOperationEmptyOp' (undefined-variable)

Check notice on line 111 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L111

Undefined variable 'MatchParamCmpIOp' (undefined-variable)

Check notice on line 60 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L60

Undefined variable 'result_def' (undefined-variable)

Check notice on line 110 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L110

Undefined variable 'MatchOperationNameOp' (undefined-variable)

Check notice on line 131 in pennylane/compiler/python_compiler/dialects/transform.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane/compiler/python_compiler/dialects/transform.py#L131

Undefined variable 'ParamType' (undefined-variable)