Document that update_instruction_property
should be the only way of updating the Target
#14269
Labels
documentation
Something is not clear or an error documentation
type: feature request
New feature or request
Milestone
What should we add?
As of now, Python technically allows us to use indexing to access the
Target
's gate_map and perform in place replacement of certain properties, which worked well while the interface lived entirely in Python, but was never explicitly supported. However, now that theTarget
has moved its data model to Rust, doing this desynchronizes the python side gate map from the rust one, which can result in incorrect assumptions.It is recommended that we explicitly document that in place mutation of the
Target
using indexing should not be supported in Python, at least until we figure out a way of synchronizing both mappings to the point where mutation via indexing is once again possible.The text was updated successfully, but these errors were encountered: