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 touncompute_op=qml.adjoint(compute_op)
.
- Returns:
the operator representing the compute-uncompute pattern.
- Return type:
See also
code/api/pennylane.change_op_basis
Download Python script
Download Notebook
View on GitHub