Options
All
  • Public
  • Public/Protected
  • All
Menu

Represent the present state of a quantum computing circuit.

Hierarchy

  • Circuit

Index

Constructors

  • new Circuit(vector: Vector, qubitCounter: number, qubitIds: number[]): Circuit

Properties

qubitCounter: number
qubitIds: number[]
vector: Vector

Methods

  • CNOT(control: number, target: number): Circuit
  • FREDKIN(control: number, target1: number, target2: number): Circuit
  • Apply the Pauli I gate

    Parameters

    • i: number

      position of the qubit to apply the gate

    Returns Circuit

    circuit with the Pauli I gate applied

  • SWAP(i: number, j: number): Circuit
  • TOFFOLI(control1: number, control2: number, target: number): Circuit
  • measureQubit(at: number): IMeasurementResult<Circuit>[]

Generated using TypeDoc