-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I'm wondering if the Verilog oracle synthesis syntax supports vectors as inputs/outputs?
Minimal example:
Oracle declaration:
module oracle (a, b, c);
input [1:0] a;
input [1:0] b;
output c;
//random example function
assign c = (a[0] & b[1]) ^ (a[1] & b[0]);
endmoduleWith QASM:
OPENQASM 2.0;
include "qelib1.inc";
oracle test a, b, c { "reg_oracle.v" }
qreg a[2];
qreg b[2];
qreg c[1];
test a, b, c;gives a compiler error:
test_oracle.qasm:10:10: Register c has incompatible length
Thanks!
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request