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

Unexpected INI instruction issued after reversing creation and receiving in SDK application #43

Open
qraa opened this issue Nov 28, 2022 · 0 comments

Comments

@qraa
Copy link
Contributor

qraa commented Nov 28, 2022

I'm trying to run a NetQASM SDK application listed below. However, when executing the application, an unexpected INI instruction is issued on both the client and the server before continuing sending and receiving in inverted fashion, as can be seen in the compiled subroutines attached.

Client application

...
create_1x10_outcomes = connection.new_array(10)
def post_create(_, qubit, pair):
    qubit.measure(create_1x10_outcomes.get_future_index(pair))
epr_socket.create_keep(10, sequential=True, post_routine=post_create)
connection.flush()

# Request size 1, server calls create
epr = epr_socket.recv_keep(1)[0]
create_1x1_outcome_reverse = epr.measure()
connection.flush()
...

Server application

...
create_1x10_outcomes = context.connection.new_array(10)
def post_create(_, qubit, pair):
    qubit.measure(create_1x10_outcomes.get_future_index(pair))
epr_sockets.recv_keep(10, sequential=True, post_routine=post_create)
connection.flush()

# Request size 1, server calls create
epr = epr_socket.create_keep(1)[0]
create_1x1_outcome_reverse = epr.measure()
connection.flush()
...

compiled_subroutines.txt

I am running NetQASM v0.12.1 on python v3.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant