utility.optimization

Contents

utility.optimization#

Contains utility functions for optimization

Functions#

expand(tape, decomps[, iterations])

Decomposes a quantum tape's operations into mapped sets of given operations

find_next_gate(index, wires, op_list)

find first operation that shares a list of wires after an index in a list

find_previous_gate(index, wires, op_list)

find first operation that shares a list of wires prior to an index in a list

is_single_axis_gate(op, axis)

check if given operation is on given basis