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

Tensor

Extends:

BasicGate → Tensor

Example:


    

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

gate: *

Method Summary

Public Methods
public

getInverse(): *

public

or(qubits: *)

public

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 Constructors

public constructor(gate: BasicGate) source

Override:

BasicGate#constructor

Params:

NameTypeAttributeDescription
gate BasicGate

Public Members

public gate: * source

Public Methods

public getInverse(): * source

Override:

BasicGate#getInverse

Return:

*

public or(qubits: *) source

Operator| overload which enables the syntax Gate | qubits.

Override:

BasicGate#or

Params:

NameTypeAttributeDescription
qubits *

public toString(): string source

Override:

BasicGate#toString

Return:

string