Closed YonatanGideoni closed 2 years ago
When updating an Instruction's name its ideal gate isn't updated, leading to inconsistencies.
from examples.single_qubit_experiment import create_experiment exp = create_experiment() print(exp.pmap.instructions['ry90p[0]'].get_ideal_gate(dims=[2]))
Should print:
[[ 0.70710678+0.j -0.70710678+0.j] [ 0.70710678+0.j 0.70710678+0.j]]
Real output:
[[0.70710678+0.j 0. -0.70710678j] [0. -0.70710678j 0.70710678+0.j ]]
(rx90 gate it was deepcopied from)
If applicable, add screenshots to help explain your problem.
c3-toolset
Add proper getter/setter for name.
Bug description
When updating an Instruction's name its ideal gate isn't updated, leading to inconsistencies.
To Reproduce
Expected behavior
Should print:
Real output:
(rx90 gate it was deepcopied from)
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
c3-toolset
Version LatestSolution
Add proper getter/setter for name.