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

FlushGate

Flush gate (denotes the end of the circuit).

Note: All compiler engines (cengines) which cache/buffer gates are obligated to flush and send all gates to the next compiler engine (followed by the flush command).

Note: This gate is sent when calling

Example:


eng.flush()

on the MainEngine `eng`.

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 Methods

public toString(): string source

Override:

BasicGate#toString

Return:

string