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

Specifying an Observable requires too much knowledge about implementation details #141

Open
nelimee opened this issue Feb 15, 2024 · 3 comments · May be fixed by #213
Open

Specifying an Observable requires too much knowledge about implementation details #141

nelimee opened this issue Feb 15, 2024 · 3 comments · May be fixed by #213
Assignees
Labels
backend Issue pertaining to the Python backend (tqec package) enhancement New feature or request, may not be in the task flow help wanted Extra attention is needed

Comments

@nelimee
Copy link
Contributor

nelimee commented Feb 15, 2024

The issue

We have an Observable operation that can be used to add an observable to the quantum circuit generated.

Creating correctly an observable currently requires to know implementation details. For example, because you can only create an observable by providing global qubit positions, you need to understand how the code is working in order to pick the right qubits.

Expected improvement

It would be nice to be able to create an observable without needing any knowledge about the internal implementation details.

I do not have any idea to make that easy at the time being, I am open to all suggestions.

@nelimee nelimee added enhancement New feature or request, may not be in the task flow help wanted Extra attention is needed backend Issue pertaining to the Python backend (tqec package) labels Feb 15, 2024
@afowler
Copy link

afowler commented Feb 19, 2024 via email

@nelimee
Copy link
Contributor Author

nelimee commented Feb 19, 2024

I think that implementing that on the template side makes a lot of sense. This is an approach I did not think about, but defining a method (that could be named qubits_on_midline for example) on Template instances might do the trick for simple templates.

As soon as more complex composition is needed, it might be tough to define a "midline". I need to think more about it, and happy to discuss that whenever you are available.

@Gistbatch
Copy link
Contributor

I can have a look at this

@Gistbatch Gistbatch self-assigned this Apr 10, 2024
@Gistbatch Gistbatch linked a pull request Apr 22, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issue pertaining to the Python backend (tqec package) enhancement New feature or request, may not be in the task flow help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants