braket.circuits.operator module

class braket.circuits.operator.Operator[source]

Bases: ABC

An operator is the abstract definition of an operation for a quantum device.

abstract property name: str

The name of the operator.

Returns:

str – The name of the operator.

abstract to_ir(*args, **kwargs) Any[source]

Converts the operator into the canonical intermediate representation. If the operator is passed in a request, this method is called before it is passed.

Returns:

Any – The the canonical intermediate representation of the operator.