LinearDepthHalfGreaterThan doesn't play nice with attrs

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by locating LinearDepthHalfGreaterThan and the related comparison classes, then inspect how they define attrs fields with init=False. Reproduce the failure by dumping attrs.fields and trying to recreate an object from them. Done means the reconstructed object works with these classes and the regression is covered by a test.

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

Descrizione

help wanted no QC knowledge needed

These comparison classes abuse the inheritance mechanisms which don't play nice with attrs dataclasses. Specifically, the children classes define attributes with init=False so if you dump all the attrs.fields and try to re-create the object, it fails.

Lingua principale
Python
Stelle
397
Fork
127
Merge medio
2g 22h
PR unite (30g)
1

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.