Nikhil
Nikhil
I had this bug too. In my code it happened because I had a `QuantumDevice` for which I didn't reset the state at the beginning of `forward`. This meant that...
Hi @masashi-y, Installing the latest version from source worked for me! Would it be possible to release a new version to PyPI with your patch?
Hi @shinyoung3, Postselections appear in 3 broad cases: 1. Cups 2. Spiders 3. Any box with cod qubits > dom qubits (more inputs than outputs), *unless using discards* The first...
Hi @sujit4uwbslg , Thanks for the PR. Could you provide a description of your proposed change please?
Hi @GenericP3rson, could I get a first-pass review on this please?
I've added the tests now @GenericP3rson !
Hi @iknoorjobs , This looks like an error with DisCoPy 1.1.5. I'll raise an issue in the upstream repo, in the meantime: Downgrading to `discopy==1.1.4` fixes this issue.
Its possible your dataset yields diagrams with different codomains. Most models expect all diagrams to have the same codomain size The `UnifyCodomainRewriter` should help https://cqcl.github.io/lambeq/lambeq.rewrite.html#lambeq.rewrite.UnifyCodomainRewriter
Hi @iknoorjobs , this would be easier to debug looking at the diagram for which this error is raised.