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

Support custom fidelities #10

Open
flowerthrower opened this issue Mar 28, 2024 · 2 comments
Open

Support custom fidelities #10

flowerthrower opened this issue Mar 28, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@flowerthrower
Copy link
Collaborator

Introduce a FidelityComputer class (see qutip-qtrl) for custom fidelity types.

@flowerthrower flowerthrower added the enhancement New feature or request label Mar 28, 2024
@MatthewBelzer
Copy link

Hello,

I am working on a problem where I am interested in doing Quantum Optimal Control on a subsystem of a Hamiltonian that is comprised of two coupled systems. To do this numerically in QuTiP, as I understand it, I would have to use a custom Fidelity Computer with CRAB/GRAPE and use it to take a partial trace of the wave vector to get the wave vector of the subsystem that I am interested in. And then, I would have to optimize that using CRAB/GRAPE.

After searching the QuTiP forum, I have found one thread on custom Fidelity Computers, but it is not recent and the code it links to has errors when I run it. I have tried to update the code (see Jupyter File attached to my QuTiP forum post), and I am now getting an error that says:

UsageError: 'No fid_computer (Fidelity computer) set. A default should be assigned by the Dynamics subclass'

Any help on solving this issue and/or implementing a custom fidelity would be appreciated.

Thanks,
Matthew

@hodgestar
Copy link

@flowerthrower @ajgpitch Do either of you know off hand how you think this should be implemented?

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

No branches or pull requests

3 participants