alibaba / acqdp

Alibaba Cloud - Quantum Development Platform
MIT License
155 stars 42 forks source link

ValueError: too many enisum subscripts #9

Closed danlkv closed 3 years ago

danlkv commented 3 years ago

Hi,

I'm trying to contract a circuit using your QAOA example. I create it from a graph and then do .preprocess() and .query(). See this file https://github.com/danlkv/acqdp/blob/main/demo/QAOA/bench_cli.py

for p=3, d=3 and p=2 d=4 the code fails with the following error:

ValueError: Internal error while evaluating ContractExpression. Note that few checks are performed - the number and rank of the array arguments must match the original expression. The internal error was: '('einstein sum subscripts string contains too many subscripts in the output',)'