operationsΒΆ

Utility functions for operator backpropagation.

apply_op_to

Apply the operator op2 to the operator op1.

to_global_op

Convert a local operator to a global operator by inserting identities on qubits which aren't used.

reduce_op

Create a lean representation of a global Pauli operator.