qadence icon indicating copy to clipboard operation
qadence copied to clipboard

[Testing] More tests for `fill_identities`

Open nmheim opened this issue 1 year ago • 0 comments

Add tests for fill_identities. namely turn the following examples into tests:

b = chain(CNOT(0,1), CNOT(1,2))
b = chain(kron(CNOT(0,1)), kron(CNOT(1,2)))
b = kron(CNOT(0,1))
b = chain(SWAP(0,1), SWAP(0,3))

This could also include a refactor of how fill_identities works. Currently its a bit complicated/ugly.

nmheim avatar Nov 22 '23 11:11 nmheim