Skip to content
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

[Feature]: Construct embedded operator from levels, embedding, and matrix. #113

Closed
1 of 9 tasks
andgoldschmidt opened this issue Jun 3, 2024 · 1 comment · Fixed by #114
Closed
1 of 9 tasks
Labels
enhancement New feature or request

Comments

@andgoldschmidt
Copy link
Member

Feature Description

Embedded operators interface is not flexible enough to handle generic systems.

This is my current solution to construct from levels and embedding levels:

CZ = [1 0 0 0; 0 1 0 0; 0 0 1 0; 0 0 0 -1]
levels = [3, 3]
embedding = [1:2, 1:2]
subspace_indices = get_subspace_indices(embedding, levels)
U_goal = EmbeddedOperator(
    embed(CZ, system, subspace=subspace_indices),
    subspace_indices,
    levels
)

Importance

1 (lowest)

What does this feature affect?

  • quantum system construction
  • problem setup
  • problem solution
  • problem performance
  • solution analysis
  • plotting
  • documentation
  • tests
  • other (please specify below)

Other information

No response

@andgoldschmidt andgoldschmidt added the enhancement New feature or request label Jun 3, 2024
@andgoldschmidt
Copy link
Member Author

Desired behavior is that a user always passes the subsystem operator, never the embedded operator:

U_goal = EmbeddedOperator(
    GATES[:CZ],
    system,
    subspace=get_subspace_indices([1:2, 1:2], [3, 3])
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant