Skip to content

Commit 3017dba

Browse files
committed
fix option_pricing.qmod main phase_port to qnum
after the fix to construct_finance_model
1 parent fd9b34b commit 3017dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

built_in_apps/option_pricing/option_pricing.qmod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ qfunc qmci(space_transform: qfunc (qbit[], qbit), phase: qnum, packed_vars: qbit
66
}, phase, packed_vars);
77
}
88

9-
qfunc main(output phase_port: qbit[1]) {
9+
qfunc main(output phase_port: qnum<1, False, 1>) {
1010
unitary_port: qbit[];
1111
allocate(6, unitary_port);
12-
allocate_num(1, False, 1, phase_port);
12+
allocate(1, phase_port);
1313
qmci(lambda(state, ind) {
1414
log_normal_finance(LogNormalModel {
1515
num_qubits=5,

0 commit comments

Comments
 (0)