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

SqrtSwapGate

You can directly use an instance of this class. SqrtSwap

Extends:

BasicGate → SqrtSwapGate

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public get

matrix: *

Method Summary

Public Methods
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() source

Override:

BasicGate#constructor

Public Members

public interchangeableQubitIndices: undefined[] source

Override:

BasicGate#interchangeableQubitIndices

public get matrix: * source

Public Methods

public toString(): string source

Override:

BasicGate#toString

Return:

string