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