ITensor / ITensor/ITensorMPS.jl
[ITensors] [ENHANCEMENT] Faster Computing Gradients of Variational Circuits with Hardware-Efficient Ansatz
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 85
- Forks
- 27
- Avg merge
- 22m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files, tests, or an entry point. Start by reviewing the existing apply implementation and how its pullbacks are defined, then compare the proposed non-parametrized and single-qubit variants against that behavior. Done means agreeing on scope and integrating validated gradient optimizations for the described hardware-efficient circuits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- quantum-computing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100