qml.fourier.mark¶
- mark(op, marker)[source]¶
Mark an operator with a custom tag.
Warning
This function is not currently supported inside
qjit()-compiled circuits.- Parameters:
op (Operator) – The operator you wish to mark.
marker (str) – The marker to give to the operator.
Example:
>>> op = qml.X(0) >>> marked_op = mark(op, "my-x") >>> print(marked_op.marker) my-x
See also
code/api/pennylane.fourier.mark
Download Python script
Download Notebook
View on GitHub