Tensor two operations into one combined one.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IQuantumOperation Tensor( IQuantumOperation Operation )
Public Function Tensor ( _ Operation As IQuantumOperation _ ) As IQuantumOperation
public: virtual IQuantumOperation^ Tensor( IQuantumOperation^ Operation ) sealed
Parameters
- Operation (IQuantumOperation)
- Operation to tensor this one with.
Return Value
The tensored operation.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the Operation parameter does not
derive from GeneralSimulatedOperation. |
DuplicateIndexesException | Thrown if any of the targets of the
two operations are the same. |