Replace `bitsize: SymbolicInt` with `dtype` in args of to common gates like Swap, CSWAP etc.

Aperta
#1,672 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
40/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by reading the definitions of the listed bloqs: Identity, Swap, CSwap, the arithmetic comparisons, HammingWeightCompute, and PlusEqualProduct. Find where they currently accept bitsize and how nearby bloqs use dtype; update the listed arguments to support dtype and check related tests for those bloqs. Done when the listed bloqs consistently accept dtype instead of bitsize and their tests pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bloqs/basic_gates

Some of the bloqs were written before we had the concept of dtypes. It'll be nice to update these to support dtype instead of bitsize such that they are more widely applicable.

Some examples -

  • Identity
  • Swap
  • CSwap
  • OutOfPlaceAdder
  • LessThanConstant
  • LessThanEqual
  • GreaterThan
  • GreaterThanConstant
  • LinearDepthGreaterThan
  • HammingWeightCompute
  • PlusEqualProduct
  • EqualsAConstant
Lingua principale
Python
Stelle
397
Fork
127
Merge medio
2g 19h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quantumlib/Qualtran

Tutte le issue di quantumlib/Qualtran

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.