Reverse¶
Header: tweedledum/algorithms/transformation/reverse.hpp
-
template<class
NewCircuit
, classCircuit
>
NewCircuittweedledum
::
reverse
(Circuit const &original)¶ Reverse a circuit.
NOTE: This function requires a template parameter that cannot be inferred. This is useful when reversing and creating a different circuit representation, e.g.
op_graph
<->netlist
NOTE: Operation type must be the same.
- Return
A new reversed circuit.
- Parameters
original
: The original quantum circuit (will not be modified).