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

Working with large circuit #201

Open
RRadgohar opened this issue Sep 13, 2023 · 1 comment
Open

Working with large circuit #201

RRadgohar opened this issue Sep 13, 2023 · 1 comment

Comments

@RRadgohar
Copy link

What is your issue?

Good day,
I'm attempting to tackle the QAOA problem on a sparse graph. The code performs effectively when applied to smaller graphs with N=80 nodes. However, when dealing with a larger graph containing 600 nodes and 1800 edges, I encountered the following error. Can anyone provide assistance in resolving this problem?

Traceback (most recent call last):
File /test.py", line 202, in <mod$
circ_ex = qtn.circ_qaoa(terms, p, gammas, betas)

File "/test.py", line 122, in circ$
circ.apply_gates(gates)
File /ENVquimb/lib/python3.9/site-packages/quimb/tensor/circuit$
self.apply_gate(*gate)
File /ENVquimb/lib/python3.9/site-packages/quimb/tensor/circuit$
self.apply_gate(gate, **gate_opts)
File /ENVquimb/lib/python3.9/site-packages/quimb/tensor/circuit$
self.psi.gate(gate.array, gate.qubits, tags=tags, **opts)
File "/ ENVquimb/lib/python3.9/site-packages/quimb/tensor/tensor
$
tn.gate_inds_(
File /ENVquimb/lib/python3.9/site-packages/quimb/tensor/tensor_$
dims = [tn.ind_size(ix) for ix in inds]
File "/ENVquimb/lib/python3.9/site-packages/quimb/tensor/tensor_$
dims = [tn.ind_size(ix) for ix in inds]
File /ENVquimb/lib/python3.9/site-packages/quimb/tensor/tensor_$
tid = next(iter(self.ind_map[ind]))
KeyError: 'k100'

@jcmgray
Copy link
Owner

jcmgray commented Sep 13, 2023

Hi @RRadgohar, it's hard to tell anything just from the error, maybe you could post a minimal working example?

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