Skip to content

Constructing model with affine/active errors raises ValueError #645

@zccoleman

Description

@zccoleman

Describe the bug
According to the docs and tutorials, I should be able to create a model with an affine/active error generator in the lindblad_error_coeffs argument as follows:

import pygsti
pspec = pygsti.processors.QubitProcessorSpec(
  num_qubits=1,
  gate_names=['Gi']
)
model=pygsti.models.create_crosstalk_free_model(
  pspec,
  lindblad_error_coeffs={
    'Gi': {('A', 'X', 'Y'): 0.1}
  }
) ## results in ValueError

Attempting this results in a ValueError raised in LindbladErrorgen.__init__ apparently due to concatenation of arrays with different dimensions.

Expected behavior
The above code should construct a model with the included affine/active error processes.

Environment:

  • pyGSTi version 0.9.13.3
  • python version 3.12.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug or regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions