CQCL / pytket-cutensornet

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

Refactor TTN so that gates are applied without "funnel tensors" #78

Closed PabloAndresCQ closed 5 months ago

PabloAndresCQ commented 5 months ago

Description

Refactored _apply_2q_gate so that it does not apply funnel tensors (which were a major memory bottleneck). Instead, the gate is "pushed" through the TTN from the leaf contaning qubit q0 to the leaf containing q1 via consecutive applications of contract_decompose.

Checklist