You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've developed an optimized version of apply specifically for variational circuits based on hardware-efficient ansatz. This approach leverages the one-qubit gates and non-parametrized entangling gates, offering a more efficient, albeit less general, solution. I'm interested in contributing this to the ITensors library and would like to gauge if there's interest in this addition.
In essence, I've written two separate functions:
An optimized apply version that does not computes the $\frac{\partial \text{apply}(\ket{\psi}, gates)}{\partial gates}$ pullback but only the $\frac{\partial \text{apply}(\ket{\psi}, gates)}{\partial \psi}$ pullback when dealing with non-parametrized gates.
A specialized apply version that computes the pullback for single-qubit gates more efficiently by taking advantage of their simpler structure. Note that as long as the gates input into apply are acting on different sites, we should be able to compute the pullback more efficiently. However, in this current implementation, only the single-qubit version has been developed.
These enhancements significantly reduced the computational cost of computing gradients in a system of $L=20$ with a depth of 6 and maxdim=60 from 290ms to approximately 180ms.
The text was updated successfully, but these errors were encountered:
I've developed an optimized version of apply specifically for variational circuits based on hardware-efficient ansatz. This approach leverages the one-qubit gates and non-parametrized entangling gates, offering a more efficient, albeit less general, solution. I'm interested in contributing this to the ITensors library and would like to gauge if there's interest in this addition.
In essence, I've written two separate functions:
An optimized apply version that does not computes the$\frac{\partial \text{apply}(\ket{\psi}, gates)}{\partial gates}$ pullback but only the $\frac{\partial \text{apply}(\ket{\psi}, gates)}{\partial \psi}$ pullback when dealing with non-parametrized gates.
A specialized apply version that computes the pullback for single-qubit gates more efficiently by taking advantage of their simpler structure. Note that as long as the gates input into apply are acting on different sites, we should be able to compute the pullback more efficiently. However, in this current implementation, only the single-qubit version has been developed.
These enhancements significantly reduced the computational cost of computing gradients in a system of$L=20$ with a depth of 6 and maxdim=60 from 290ms to approximately 180ms.
The text was updated successfully, but these errors were encountered: