q-optimize / c3

Toolset for control, calibration and characterization of physical systems
https://c3-toolset.readthedocs.io/
Apache License 2.0
66 stars 36 forks source link

[Instruction] Not able to set ideal gate #191

Closed nwittler closed 2 years ago

nwittler commented 2 years ago

Describe the bug

If not set explicitly, the ideal gate is set at instantiation of an Instruction with no consistent way to change it.

To Reproduce

Inspect the ideal gates in the two qubit example. They are all identical to the rx90p because they were copied.

Expected behavior

When the name of an instruction is changed, the corresponding ideal matrix representation should be updated.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information)

Additional context

Add any other context about the problem here. You can also suggest possible solutions and relevant implementations & edge case details.