qml.decomposition.change_op_basis_resource_rep¶
- change_op_basis_resource_rep(compute_op, target_op, uncompute_op=None)[source]¶
Creates a
CompressedResourceOprepresentation of the compute-uncompute patternChangeOpBasisof operators.- Parameters:
compute_op – the compressed resource representation of the compute operator
target_op – the compressed resource representation of target operator
uncompute_op – the compressed resource representation of the uncompute operator
code/api/pennylane.decomposition.change_op_basis_resource_rep
Download Python script
Download Notebook
View on GitHub