Apply the S gate (phase gate) to the qubits at the indexes specified.
| C# | Visual Basic | Visual C++ |
IQuantumRegister OperationSGate( int[] Indexes )
Function OperationSGate ( _ Indexes As Integer() _ ) As IQuantumRegister
IQuantumRegister^ OperationSGate( array<int>^ Indexes )
- Indexes (array< Int32 >[]()[])
- Indexes of the qubits to apply the indexes to.
A reference to this register after the operation has been applied.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if any of the indexes
specified are out of range. |