Home Reference Source
import {SelfInverseGate} from 'projectq/src/ops/basics.js'
public class | source

SelfInverseGate

Extends:

BasicGate → SelfInverseGate

Direct Subclass:

HGate, SGate, XGate, YGate, ZGate

Method Summary

Public Methods
public

getInverse(): *

Inherited Summary

From class BasicGate
public static

makeTupleOfQureg(qubits: Qubit | Qubit[] | Qureg | Qureg[]): Qureg[]

Convert quantum input of "gate | quantum input" to internal formatting.

public
public
public

equal(other: BasicGate | Object): boolean

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

Public Methods

public getInverse(): * source

Override:

BasicGate#getInverse

Return:

*