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

Ph

Extends:

BasicGateBasicPhaseGate → Ph

Phase gate (global phase)

Member Summary

Public Members
public get

matrix: *

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
From class BasicPhaseGate
public

angle: *

public

equal(other: *): boolean

public

Return the inverse of this rotation gate (negate the angle, return new object).

public

Return self merged with another gate.

public
public

Public Members

public get matrix: * source