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

Custom unentangled density matrix for initial state #297

Open
GibbsJR opened this issue Sep 28, 2022 · 2 comments
Open

Custom unentangled density matrix for initial state #297

GibbsJR opened this issue Sep 28, 2022 · 2 comments

Comments

@GibbsJR
Copy link

GibbsJR commented Sep 28, 2022

I have an unentangled density matrix that I would like to use as my starting initial state, with which I can encode as a MPO. My state has the same form as (S44) in https://arxiv.org/pdf/2002.08953.pdf.
This type of state feels like it should be easy to represent as an MPO due to the tensor product form, but I am unsure where to start.

@GibbsJR
Copy link
Author

GibbsJR commented Sep 29, 2022

Looking at the presentation in https://github.com/mtfishman/ITensorTutorials.jl it seems I would be able to to construct the local MPO on each qubit directly from the matrix representation (with independent indices for each site), then I can compose these tensors together to generate the total MPO.

Assuming I can create this MPO correctly using ITensors, can this MPO be fed directly into 'runcircuit' as the starting state, which I can apply gates to?

@mtfishman
Copy link
Collaborator

mtfishman commented Sep 29, 2022

Yes, that is what I was going to suggest. You can just make an MPO from a set of ITensors:

n = 10
s = siteinds("Qubit", n)
rho = MPO(n)
for j in 1:n
  m_j = zeros(2, 2) # Make the matrix however you want
  rho[j] = itensor(m_j, s[j], s[j]')
end

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

No branches or pull requests

2 participants