[Performance] Resource counting for a bloq.adjoint() needs a bloq decomposition even when my_static_cost or build_call_graph is implemented for the bloq
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- backend-api-design, performance
Direzione di ricerca
Read the Bloq APIs for build_call_graph, my_static_cost, and adjoint(), then trace how bloq.adjoint().call_graph() and qubit counting currently obtain their results. Define and check the intended behavior for adjoints, including the measurement-based uncomputing caveat; the issue also notes controlled Bloqs as a related case. Done means the supported behavior is decided and implemented with coverage for call graphs and static cost.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Using the call_graph example (but it applies similarly to qubit count/my_static_cost):
If one defines a Bloq with a build_call_graph, then calls bloq.adjoint().call_graph(), the current behaviour in Qualtran is to call for the bloq.adjoint() decomposition, which can, especially when working with big circuit, lead to performance issue.
However with most Bloq, the call_graph of bloq.ajdoint() is simply the "adjoint of the original bloq.call_graph()" ie, the original bloq.call_graph() with every element replace by its adjoint.
Do you think it is possible to get bloq.adjoint() call_graph to be the adjoint of the call_graph by default or via an optional argument ?
This could obviously raise issue in situation where the adjoint is very different (for example when doing measurement based uncomputing), which is why it should probably remain optional.
The same problem arise when using my_static_cost, for example when estimating qubit count, (and in this case, I believe the qubit count of bloq.adjoint() should always be the same as the bloq).
There is a similar issue when using bloq.controlled(), however this one is probably more complex.
Currently the solution I am using is to create a wrapper bloq for the adjoint version, but it does involve a lot of verbose which would be nice to avoid.
Let me know what you think.
- Lingua principale
- Python
- Stelle
- 397
- Fork
- 127
- Merge medio
- 2g 19h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di quantumlib/Qualtran
-
`show_bloq` not workingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
quantumlib/Qualtran#2007 ·
I maintainer di solito rispondono entro 3 giorni
-
Addition call_graph inconsistent with decomposition for registers with unequal bitsizesForse di nuovo libera @rupasri118 l’ha presa 55 giorni fa e non c’è nessuna pull request aperta. Apertakind/bug-report
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
quantumlib/Qualtran#1818 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 75/100
quantumlib/Qualtran#2008 ·
I maintainer di solito rispondono entro 3 giorni
-
kickmix: `Circuit.reaction_depth()` materialises every op (≈ 135–170 B/op transient), limiting verifiable circuit sizeForse già presa @manwithacat l’ha presa 26 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
quantumlib/Qualtran#1993 ·
I maintainer di solito rispondono entro 3 giorni
-
Windows wheel (or source) for kickmix library needed for Kaggle quantum compilation challengeAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
quantumlib/Qualtran#1991 ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di quantumlib/Qualtran
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
OpenFreeEnergy/openfe#2371 ·
I maintainer di solito rispondono entro 2 giorni
-
HMDB's smiles file writes "None" for metabolites with an empty <smiles/> (file not currently used)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
NCATSTranslator/Babel#1269 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
404 on sample dataApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
bcgov/nr-hydrometric-rating-curve#443 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100