Skip to content

Zip #4034

@dabacon

Description

@dabacon

Is your feature request related to a use case or problem? Please describe.

A very common pattern in building quantum circuits is to have a bunch of two qubit gates that you want to put into a circuit, and you do this by acting on qubits from two lists

for q0, q1 in zip(qubits0, qubits1):
  cirq.CNOT.on(q0, q1)

In a similar way to having on_each we could, for two qubit gates, have zip:

cirq.CNOT.zip(qubits0, qubits1)

I'm unsure if this could also be extended across multiple qubit gates (or even be another way to do on_each).

What is the urgency from your perspective for this issue? Is it blocking important work?

P2 - we should do it in the next couple of quarters

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/gatescomplexity/mediumintroduces/modifies 3-5 concepts, takes max up to a month for an advanced contributorgood first issueThis issue can be resolved by someone who is not familiar with the codebase. A good starting issue.kind/feature-requestDescribes new functionalitytriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions