Quantum API Reference

Comprehensive API documentation for the Quantum Computing Ing Inc SDK - classes, methods, and parameters.

QuantumCircuit

QuantumCircuit

Represents a quantum circuit with a register of qubits. Supports gate operations, simulations, and visualizations.

Constructor

new QuantumCircuit(qubitCount: number): QuantumCircuit

Initializes a new quantum circuit with the specified number of qubits.

Methods

h(qubit: number)

Applies a Hadamard gate to the specified qubit.

cx(control: number, target: number)

Applies a CNOT (controlled-X) gate between control and target qubits.

measure(qubit: number)

Measures the specified qubit and adds a classical bit to the circuit.

simulate(iterations: number)

Simulates the circuit and returns measurement statistics.

draw()

Renders the circuit as a visual representation.

QuantumGate

QuantumGate

Base class for quantum gates. Provides common operations and matrix transformations.

Static Properties

  • Gate.H: [[1,1],[1,-1]]/√2
  • Gate.X: [[0,1],[1,0]]
  • Gate.Z: [[1,0],[0,-1]]

Custom Gates

rx(theta: number)

Rotates a qubit around the X-axis by theta radians.

ry(theta: number)

Rotates a qubit around the Y-axis by theta radians.

swap(a: number, b: number)

Swaps the states of two qubits.

add(control: number, target: number)

Applies a Toffoli (controlled-controlled-X) gate.

Simulator

Simulator

High-performance quantum state simulator with configurable backend settings.

simulate()

Returns a result object with probabilities and measurement counts.

setBackend(backend: string)

Configures the simulation backend (e.g., "vector", "matrix", "gpu").

Ready to Build?

Our API provides the tools you need to create quantum algorithms, run simulations, and explore quantum computing concepts.