qml.change_op_basis

change_op_basis(compute_op, target_op, uncompute_op=None)[source]

Construct an operator that represents the product of the operators provided.

Parameters:
  • compute_op (Operator) – A single operator or product that applies quantum operations.

  • target_op (Operator) – A single operator or a product that applies quantum operations.

  • uncompute_op (None | Operator) – An optional single operator or a product that applies quantum operations. None corresponds to uncompute_op=qml.adjoint(compute_op).

Returns:

the operator representing the compute-uncompute pattern.

Return type:

ChangeOpBasis

See also

ChangeOpBasis