Uses of Class
com.quantum4j.core.math.Complex
Packages that use Complex
Package
Description
Quantum gate abstractions and standard gate implementations.
Low-level mathematical primitives used by the simulator: complex numbers and state vector representation.
-
Uses of Complex in com.quantum4j.core.gates
Fields in com.quantum4j.core.gates declared as ComplexModifier and TypeFieldDescriptionstatic final Complex[][]GateMatrices.CCXstatic final Complex[][]GateMatrices.CHstatic final Complex[][]GateMatrices.CNOTstatic final Complex[][]GateMatrices.CZstatic final Complex[][]GateMatrices.Hstatic final Complex[][]GateMatrices.ISWAPprotected final Complex[][]SingleQubitGate.matrix2x2 unitary matrix representing this gateprotected final Complex[][]ThreeQubitGate.matrix8×8 unitary matrix in local ordering |q0 q1 q2⟩.protected final Complex[][]TwoQubitGate.matrix4×4 unitary matrix in local ordering |q0 q1⟩ = |00⟩,|01⟩,|10⟩,|11⟩.static final Complex[][]GateMatrices.Sstatic final Complex[][]GateMatrices.SWAPstatic final Complex[][]GateMatrices.Tstatic final Complex[][]GateMatrices.Xstatic final Complex[][]GateMatrices.Ystatic final Complex[][]GateMatrices.ZMethods in com.quantum4j.core.gates that return ComplexModifier and TypeMethodDescriptionstatic Complex[][]GateMatrices.RX(double theta) static Complex[][]GateMatrices.RY(double theta) static Complex[][]GateMatrices.RZ(double theta) Constructors in com.quantum4j.core.gates with parameters of type ComplexModifierConstructorDescriptionprotectedSingleQubitGate(Complex[][] matrix) Construct a single-qubit gate with the given 2×2 matrix.protectedThreeQubitGate(Complex[][] matrix) Construct a three-qubit gate with the given 8×8 matrix.protectedTwoQubitGate(Complex[][] matrix) Construct a two-qubit gate with the given 4×4 matrix. -
Uses of Complex in com.quantum4j.core.math
Fields in com.quantum4j.core.math declared as ComplexModifier and TypeFieldDescriptionstatic final ComplexComplex.ONEComplex one: 1 + 0istatic final ComplexComplex.ZEROComplex zero: 0 + 0iMethods in com.quantum4j.core.math that return ComplexModifier and TypeMethodDescriptionAdd another complex number to this one.Complex.conjugate()Get the complex conjugate.Complex[]StateVector.getAmplitudes()Get the amplitude array (for direct manipulation by gates).Complex.mul(double scalar) Multiply this complex number by a scalar.Multiply this complex number by another.Subtract another complex number from this one.Methods in com.quantum4j.core.math with parameters of type Complex