quantum-compiler / quartz

The Quartz Quantum Compiler
Apache License 2.0
76 stars 19 forks source link

[Generator] Support parametrized 2-qubit gates in ECC set generation #98

Closed xumingkuan closed 1 year ago

xumingkuan commented 1 year ago

Fixes #88

This PR supports parametrized 2-qubit gates in the bfs method of generator. The dfs method is deprecated (and slower) so we don't plan to add support to it.

Usage example:

gen_ecc_set({GateType::cp}, "cp_", true, true, 2, 1, 1);