Skip to content

Commit

Permalink
Add serialization for ECPoint arg type. (#1412)
Browse files Browse the repository at this point in the history
Add serialization for ECPoint arg type
  • Loading branch information
fpapa250 authored Sep 24, 2024
1 parent 37f18f6 commit cee6954
Show file tree
Hide file tree
Showing 9 changed files with 248 additions and 64 deletions.
3 changes: 3 additions & 0 deletions qualtran/protos/bloq.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ syntax = "proto3";

import "qualtran/protos/annotations.proto";
import "qualtran/protos/args.proto";
import "qualtran/protos/ec_point.proto";
import "qualtran/protos/registers.proto";
import "qualtran/protos/data_types.proto";
import "qualtran/protos/ctrl_spec.proto";
Expand Down Expand Up @@ -49,6 +50,8 @@ message BloqArg {
// Ctrl Spec for controlled bloqs
CtrlSpec ctrl_spec = 12;
Complex complex_val = 13;
// An elliptical curve point for ECC bloqs
ECPoint ec_point = 14;
}
}

Expand Down
43 changes: 22 additions & 21 deletions qualtran/protos/bloq_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cee6954

Please sign in to comment.