CQCL / pytket-cutensornet

cuTensorNet Python API extensions for pytket quantum SDK
Apache License 2.0
8 stars 1 forks source link

Support general matrix elements in backend #128

Open obackhouse opened 3 weeks ago

obackhouse commented 3 weeks ago

Description

Adds a function to CuTensorNetBackend to get general matrix elements. Expectation values are computed as a special case of that function.

I've not added tests as of now, as my understanding as per @PabloAndresCQ is that this is soon to be refactored anyway, so this PR may become defunct.

Related issues

Please mention any github issues addressed by this PR.

Checklist