Skip to content

FOGI Labels Exponential Blowup #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
juangmendoza19 opened this issue Sep 17, 2024 · 1 comment
Closed

FOGI Labels Exponential Blowup #486

juangmendoza19 opened this issue Sep 17, 2024 · 1 comment
Assignees
Labels
bug A bug or regression
Milestone

Comments

@juangmendoza19
Copy link

When running GST with a FOGI model, the output model's labels get messed up. It seems like every iteration, the model gets rebuilt and during the label construction it includes a combination of the previous labels. Creating a nested pattern of labels which grows at an exponential rate, and causing huge memory consumption. Pointed out by @jordanh6

Steps to reproduce the behavior:
#Create a FOGI model
import pygsti
from pygsti.modelpacks import smq1Q_XY as std
import numpy as np
from FOGI.fogi import create_fogiASMP_smq1Q_XY_model
fogi_model = create_fogiASMP_smq1Q_XY_model(pygsti_model=True)

#Generate data to run GST
datagen_model = std.target_model("GLND")
errgen_vector = np.zeros(datagen_model.num_params)
errgen_vector[4] = .1
datagen_model.from_vector(errgen_vector)
design = std.create_gst_experiment_design(32)
dataset = pygsti.data.simulate_data(datagen_model,
design.all_circuits_needing_data,
num_samples=100000, seed=20230217, sample_error='none')

data = pygsti.protocols.ProtocolData(design, dataset)

#Run GST
protoOpt = pygsti.protocols.GateSetTomography(fogi_model, verbosity=0, gaugeopt_suite=None)

Expected behavior
The labels of the result model should be unchanged

Environment:

  • pyGSTi version 0.9.12.3
  • python version 3.10.14
  • macOS 14.6.1
@juangmendoza19 juangmendoza19 added the bug A bug or regression label Sep 17, 2024
@juangmendoza19 juangmendoza19 self-assigned this Sep 17, 2024
@sserita sserita added this to the 0.9.13 milestone Sep 19, 2024
@sserita sserita added the fixed but not in release yet Bug has been fixed, but isn't in an official release yet (just exists on a development branch) label Sep 19, 2024
@sserita
Copy link
Contributor

sserita commented Sep 19, 2024

Completed with #488

@sserita sserita closed this as completed Sep 19, 2024
@sserita sserita removed the fixed but not in release yet Bug has been fixed, but isn't in an official release yet (just exists on a development branch) label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug or regression
Projects
None yet
Development

No branches or pull requests

2 participants