Problem with 'quantum_density_operation'

Hendrik Weimer hendrik at enyo.de
Tue Jan 11 22:44:54 CET 2005


Bjoern Butscher <bjoern at epith.de> writes:

>  #define quantum_density_wrapper_ubt(reg, ctl, ...) \
> -quantum_unbounded_toffoli(ctl, reg, __VA_ARGS__)
> +quantum_unbounded_toffoli(ctl, reg, ##__VA_ARGS__)

Unfortunately, this patch only works for gcc. The C99 standard
(cf. 6.10.3.3) does not require the trailing comma to be removed if
__VA_ARGS__ is empty.

The upcoming release will disable the direct support for
quantum_unbounded_toffoli within the density operator formalism. A
note in the API documentation will show how to use this function
manually.

Alternative suggestions are welcome.

Hendrik



More information about the libquantum-users mailing list