tequilahub / tequila

A High-Level Abstraction Framework for Quantum Algorithms
MIT License
362 stars 101 forks source link

add contract method to QTensor so as to allow optimization #217

Closed salperinlea closed 2 years ago

salperinlea commented 2 years ago

VectorObjective had this method, which allowed it to be passed to optimizers; QTensor did not get this method when it replaced VectorObjective

kottmanj commented 2 years ago

Thanks!