Apply a generic operation to the register.
Declaration Syntax
C# | Visual Basic | Visual C++ |
IQuantumRegister ApplyOperation( IQuantumOperation Operation )
Function ApplyOperation ( _ Operation As IQuantumOperation _ ) As IQuantumRegister
IQuantumRegister^ ApplyOperation( IQuantumOperation^ Operation )
Parameters
- Operation (IQuantumOperation)
- The operation to apply
Return Value
A reference to this register after the operation has been applied.
Exceptions
Exception | Condition |
---|---|
SizeMismatchException | Thrown if the number of qubits
the operation applies to does not match the number of qubits in the
register. |