Returns a quantum register with the qubits reversed, then the operations applied.
| C# | Visual Basic | Visual C++ |
IQuantumRegister SliceReverse( IEnumerable<IQuantumOperation> Operations )
Function SliceReverse ( _ Operations As IEnumerable(Of IQuantumOperation) _ ) As IQuantumRegister
IQuantumRegister^ SliceReverse( IEnumerable<IQuantumOperation^>^ Operations )
- Operations (IEnumerable<(Of <(IQuantumOperation>)>))
- The operations to apply to the reversed slice.
The quantum register representing this register with the qubits reversed
and then the operations applied.
| Exception | Condition |
|---|---|
| NotUnitaryOperationException | Thrown if a non-unitary operation is
passed. All quantum operations must be unitary. |
| SizeMismatchException | Thrown if the size of one of the operations
does not match the size of the register. |