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 | Method and Description |
---|---|
void |
Circuit.addCNOT(int[] qubits,
boolean yRegister)
Adds a CNOT gate on the two qubits specified by the two numbers
in the qubit array;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
void |
Circuit.addFunction(FunctionParser function)
Adds a function evaluating gate to the circuit, specified by the input function.
|
void |
Circuit.addGrover(int needle)
Adds the Grover gate searching for the specified needle to the circuit.
|
void |
Circuit.addHadamard(int i,
boolean yRegister)
Adds a Hadamard gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addInvQFT(boolean yRegister)
Adds the inverse Fourier transform gate to the circuit;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
void |
Circuit.addInvSGate(int i,
boolean yRegister)
Adds an S* gate, the inverse or adjoint of the S gate,
on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addMeasurement(int[] qubits,
boolean yRegister)
Adds a measurement gate on the qubits specified by the qubit array;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
void |
Circuit.addPauliX(int i,
boolean yRegister)
Adds a Pauli-X gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addPauliY(int i,
boolean yRegister)
Adds a Pauli-Y gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addPauliZ(int i,
boolean yRegister)
Adds a Pauli-Z gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addQFT(boolean yRegister)
Adds the Fourier transform gate to the circuit;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
void |
Circuit.addRotation(int[] qubits,
boolean yRegisterChosen,
String axis,
int phiAsPartOfPi)
Adds a rotation gate to the circuit.
|
void |
Circuit.addSGate(int i,
boolean yRegister)
Adds an S gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addSqrtX(int i,
boolean yRegister)
Adds a √X, or √NOT gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addTGate(int i,
boolean yRegister)
Adds a T gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addToffoli(int[] qubits,
boolean yRegister)
Adds a Toffoli gate on the three qubits specified by the three numbers
in the qubit array;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
Modifier and Type | Method and Description |
---|---|
void |
Circuit.addCNOT(int[] qubits,
boolean yRegister)
Adds a CNOT gate on the two qubits specified by the two numbers
in the qubit array;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
void |
Circuit.addFunction(FunctionParser function)
Adds a function evaluating gate to the circuit, specified by the input function.
|
void |
Circuit.addGrover(int needle)
Adds the Grover gate searching for the specified needle to the circuit.
|
void |
Circuit.addHadamard(int i,
boolean yRegister)
Adds a Hadamard gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addInvQFT(boolean yRegister)
Adds the inverse Fourier transform gate to the circuit;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
void |
Circuit.addInvSGate(int i,
boolean yRegister)
Adds an S* gate, the inverse or adjoint of the S gate,
on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addMeasurement(int[] qubits,
boolean yRegister)
Adds a measurement gate on the qubits specified by the qubit array;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
void |
Circuit.addPauliX(int i,
boolean yRegister)
Adds a Pauli-X gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addPauliY(int i,
boolean yRegister)
Adds a Pauli-Y gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addPauliZ(int i,
boolean yRegister)
Adds a Pauli-Z gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addQFT(boolean yRegister)
Adds the Fourier transform gate to the circuit;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |
void |
Circuit.addRotation(int[] qubits,
boolean yRegisterChosen,
String axis,
int phiAsPartOfPi)
Adds a rotation gate to the circuit.
|
void |
Circuit.addSGate(int i,
boolean yRegister)
Adds an S gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addSqrtX(int i,
boolean yRegister)
Adds a √X, or √NOT gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addTGate(int i,
boolean yRegister)
Adds a T gate on the i-th qubit of the quantum circuit;
if the flag
yRegister is set, it is added to the i-th qubit
of the y-register, otherwise it is the i-th qubit of the
x-register. |
void |
Circuit.addToffoli(int[] qubits,
boolean yRegister)
Adds a Toffoli gate on the three qubits specified by the three numbers
in the qubit array;
if the flag
yRegister is set, it is added to the
y-register, otherwise to the x-register. |