import { Constant } from "@masabando/quantum-gates"The Constant class provides predefined constant values used in quantum computing calculations.
Constant.PI : numberRepresents the mathematical constant π (pi), approximately equal to 3.14159.
Constant.E : numberRepresents the mathematical constant e (Euler's number), approximately equal to 2.71828.
Constant.COMPLEX_I : ComplexRepresents the imaginary unit i (Complex(0, 1)).
Constant.COMPLEX_ONE : ComplexRepresents the complex number 1 (Complex(1, 0)).
Constant.COMPLEX_ZERO : ComplexRepresents the complex number 0 (Complex(0, 0)).
Constant.PAULI_X : QMatrixRepresents the Pauli-X (NOT) gate matrix.
Constant.PAULI_Y : QMatrixRepresents the Pauli-Y gate matrix.
Constant.PAULI_Z : QMatrixRepresents the Pauli-Z gate matrix.
Constant.identity(dim: number) : QMatrixReturns the identity matrix of dimension dim.
Constant.zero(dim: number) : QMatrixReturns the zero matrix of dimension dim.