ReCirq icon indicating copy to clipboard operation
ReCirq copied to clipboard

Unexpected keyword argument in `build_otoc_circuits`

Open rmlarose opened this issue 2 years ago • 1 comments

If you call build_otoc_circuits with use_physical_cz=False, cz_to_sqrt_iswap is called with corrections=cz_correction

https://github.com/quantumlib/ReCirq/blob/144323f212757775a8541dbe2f938b64534b25ec/recirq/otoc/otoc_circuits.py#L287

but cz_to_sqrt_iswap has no corrections argument

https://github.com/quantumlib/ReCirq/blob/144323f212757775a8541dbe2f938b64534b25ec/recirq/otoc/utils.py#L229-L232

To reproduce, run python otoc_example.py with use_physical_cz=False.

TypeError: cz_to_sqrt_iswap() got an unexpected keyword argument 'corrections'

rmlarose avatar Jul 25 '21 19:07 rmlarose

@XiaoMiQC

mpharrigan avatar Jul 26 '21 18:07 mpharrigan