Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected keyword argument in build_otoc_circuits #189

Open
rmlarose opened this issue Jul 25, 2021 · 1 comment
Open

Unexpected keyword argument in build_otoc_circuits #189

rmlarose opened this issue Jul 25, 2021 · 1 comment
Labels

Comments

@rmlarose
Copy link
Contributor

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

cz_seq = cz_to_sqrt_iswap(ancilla, qubits[0], corrections=cz_correction)

but cz_to_sqrt_iswap has no corrections argument

ReCirq/recirq/otoc/utils.py

Lines 229 to 232 in 144323f

def cz_to_sqrt_iswap(
qubit_0: cirq.GridQubit,
qubit_1: cirq.GridQubit,
) -> cirq.Circuit:

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

TypeError: cz_to_sqrt_iswap() got an unexpected keyword argument 'corrections'
@mpharrigan
Copy link
Collaborator

@XiaoMiQC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants