Optimize targeted_left_multiply for onehot operators #5903
Labels
area/channels
area/operators
kind/feature-request
Describes new functionality
triage/discuss
Needs decision / discussion, bring these up during Cirq Cynque
Is your feature request related to a use case or problem? Please describe.
Some operator matrices passed to
targeted_left_multiply
are onehot (times a constant). Kraus components in particular. I could be wrong, but I believe these can be sped up beyond the defaulteinsum
implementation.Plausibly even the
_apply_kraus_multi_qubit
that calls it could be sped up for onehot operators, as there may be a way to do everything in one step. But I'm even less certain here.Describe the solution you'd like
Investigate and fix if possible.
What is the urgency from your perspective for this issue? Is it blocking important work?
P3 - I'm not really blocked by it, it is an idea I'd like to discuss / suggestion based on principle
The text was updated successfully, but these errors were encountered: