Skip to content

Add a generic Optimizer that makes use of GateTabulation #4059

@wjhuggins

Description

@wjhuggins

We should write an Optimizer that can use the GateTabulation code to recompile a circuit for an arbitrary two-qubit gate.

Is your feature request related to a use case or problem? Please describe.
Yes. This would make it easy to compile a circuit to a specific device using a two-qubit gate which we don't have a full set of analytical tools for.

In the future, we could also use this kind of functionality to do better refitting based on calibration data (at the expense of generating many GateTabulation objects).

Describe the solution you'd like
We should adapt the existing infrastructure we have to provide an optimizer which uses the GateTabulation code to compile a circuit with a user specific base_gate.

[optional] Describe alternatives/workarounds you've considered
I've hacked this in to the code myself, but it isn't pretty. Analytical compilation isn't always possible and it definitely isn't always straightforward to implement, even for gates we support well.

P1 or P2 depending maybe.

Metadata

Metadata

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions