Perform the Z gate operation to the qubits at the specified indexes.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IQuantumRegister OperationZGate( int[] Indexes )
Public Function OperationZGate ( _ Indexes As Integer() _ ) As IQuantumRegister
public: virtual IQuantumRegister^ OperationZGate( array<int>^ Indexes ) sealed
Parameters
- Indexes (array< Int32 >[]()[])
- Indexes of qubits to apply the operation to.
Return Value
A reference to this register after the operation has been applied.
Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException | Thrown if any of the indexes
are out of range. |
NotImplementedException | This method is not yet
implemented. |