Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add support for CQC protocol #19

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
3589b2e
Add first part of CQC protol
johanvos Sep 20, 2019
f93aa9b
more parts of CQC
johanvos Sep 21, 2019
97c3412
add more CQC implementation
johanvos Sep 21, 2019
3a8ab39
Allow to teleport qubits from Java node to Python node
johanvos Sep 22, 2019
5e09020
Add first part of CQC protol
johanvos Sep 20, 2019
4377a3d
more parts of CQC
johanvos Sep 21, 2019
5509ee3
add more CQC implementation
johanvos Sep 21, 2019
37108bc
Allow to teleport qubits from Java node to Python node
johanvos Sep 22, 2019
f8c8161
Merge branch 'cqc' of github.com:johanvos/strange into cqc
johanvos Nov 27, 2019
e6e2448
implement CQC Assign Header
johanvos Nov 28, 2019
3f05e3a
minor modifications to Qubit class:
johanvos Dec 4, 2019
c7c4f8a
add BSD license headers
johanvos Dec 6, 2019
c2b0a03
Merge branch 'master' of github.com:johanvos/strange
johanvos Dec 6, 2019
350ebc6
Merge branch 'master' into cqc
johanvos Dec 6, 2019
8c6012e
build 0.0.10
johanvos Nov 23, 2019
065dd18
prepare next 0.0.11 release
johanvos Nov 23, 2019
f0604fb
minor modifications to Qubit class: (#31)
johanvos Dec 4, 2019
131ae9f
Merge branch 'master' into cqc
johanvos Dec 26, 2019
354adb6
Merge remote-tracking branch 'upstream/master' into cqc
johanvos Dec 26, 2019
ea23872
fix javadoc
johanvos Dec 26, 2019
2fb37cc
add AppSession communication (serversocket)
johanvos Dec 29, 2019
92f8890
send/receive qubits
johanvos Jan 2, 2020
82e0859
fix send/receive qubit protocols
johanvos Jan 2, 2020
647bffd
remove debug, return qubit ID instead of response message
johanvos Jan 5, 2020
752bc2d
more consistent API
johanvos Jan 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix javadoc
fix renamed API
  • Loading branch information
johanvos committed Dec 26, 2019
commit ea2387290d73a98f36d29f6155421100ee528c47
2 changes: 1 addition & 1 deletion src/main/java/com/gluonhq/strange/Qubit.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Qubit() {

/**
* Creates a qubit with an initial value for alpha.
* The initial state of the qubit is ralpha |0> + (1-ralpha^2)^(1/2) |1>
* The initial state of the qubit is ralpha |0> + (1-ralpha^2)^(1/2) |1>
* @param ralpha the real part of the alpha coefficient in alfa |0> + beta |1>
*/
public Qubit (double ralpha) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/gluonhq/strange/cqc/CQCSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void applyGate(Gate gate) throws IOException {
System.err.println("Send command to apply gate");
sendCommandHeader((short) qid, cmdByte, option);
if (gate instanceof Cnot) {
sendExtraQubitHeader((short) ((Cnot) gate).getSecondQubit());
sendExtraQubitHeader((short) ((Cnot) gate).getSecondQubitIndex());
}
System.err.println("wait for TP_DONE");
ResponseMessage done = readMessage();
Expand Down