SelfInverseGate
Extends:
BasicGate → SelfInverseGate
Self-inverse basic gate class. Automatic implementation of the getInverse-member function for self-inverse gates.
Example:
// getInverse(H) == H, it is a self-inverse gate:
getInverse(H) | qubit
Method Summary
Public Methods | ||
public |
getInverse(): * |
Inherited Summary
From class BasicGate | ||
public static |
Convert quantum input of "gate | quantum input" to internal formatting. |
|
public |
|
|
public |
|
|
public |
|
|
public |
generateCommand(qubits: *): Command Helper function to generate a command consisting of the gate and the qubits being acted upon. |
|
public |
|
|
public |
|
|
public |
|
|
public |
or(qubits: *) Operator| overload which enables the syntax Gate | qubits. |
|
public |
toString() |