Class QuantumGate
java.lang.Object
org.episteme.natural.physics.quantum.QuantumGate
Represents a unitary quantum gate.
Re-located to core for unified backend access.
-
Constructor Summary
ConstructorsConstructorDescriptionQuantumGate(DenseMatrix<Complex> matrix) QuantumGate(QuantumGateType type, int... targetQubits) -
Method Summary
Modifier and TypeMethodDescriptionstatic QuantumGatecnot()doubleintint[]getType()static QuantumGatehadamard()static QuantumGatepauliX()static QuantumGatepauliY()static QuantumGatepauliZ()voidsetParameter(double p) toString()
-
Constructor Details
-
QuantumGate
-
QuantumGate
-
-
Method Details
-
hadamard
-
pauliX
-
pauliY
-
pauliZ
-
cnot
-
getType
-
getTargetQubits
public int[] getTargetQubits() -
getQubits
public int getQubits() -
getMatrix
-
setParameter
public void setParameter(double p) -
getParameter
public double getParameter() -
toString
-
apply
-