Package | Description |
---|---|
org.mathIT.quantum |
Provides classes to simulate quantum computation,
such as a quantum register and a quantum gate
|
org.mathIT.quantum.stabilizer |
Provides classes to simulate quantum stabilizer states.
|
Modifier and Type | Field and Description |
---|---|
FunctionParser |
QuantumGate.function
the parsed function for the function evaluation gate Uf.
|
Modifier and Type | Method and Description |
---|---|
void |
Circuit.addFunction(FunctionParser function)
Adds a function evaluating gate to the circuit, specified by the input function.
|
Register |
Register.evaluateFunction(Register yRegister,
FunctionParser function,
int z)
Applies the function evaluation of a parsed function f(z) to the
y-register.
|
Constructor and Description |
---|
QuantumGate(String name,
int[] qubits,
FunctionParser function,
boolean yRegister)
Constructor for a quantum gate evaluating a function.
|
Modifier and Type | Method and Description |
---|---|
void |
Circuit.addFunction(FunctionParser function)
Adds a function evaluating gate to the circuit, specified by the input function.
|
Register |
Register.evaluateFunction(Register yRegister,
FunctionParser function,
int z)
Applies the function evaluation of a parsed function f(z) to the
y-register.
|