Flipping the integrated histogram axes shifts the empirical CDF staircase

Aperta
#8,558 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
matplotlib, python

Direzione di ricerca

Find integrated_histogram and inspect how it builds the staircase for cdf_on_x=True; the issue gives a two-observation example and the expected coordinate swap. Add a regression check comparing the flipped path with the default path's exchanged coordinates, then confirm the plotted step corners match.

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

Descrizione

triage/discuss

The integrated histogram documents cdf_on_x=True as flipping the axes. The plotted staircase also shifts by one observation. For two gate fidelities of 0.8 and 0.9, the default plot reaches probability 0.5 at fidelity 0.8. With the axes flipped, the horizontal segment from probability 0 to 0.5 sits at fidelity 0.

I called integrated_histogram with those two observations, a supplied Matplotlib axis, semilog=False, and median_line=False at revision 513daa38. Inspecting the line path (including step corners) gives:

  • Default: (0,0), (.8,0), (.8,.5), (.9,.5), (.9,1)
  • Flipped: (0,0), (.5,0), (.5,.8), (1,.8), (1,.9)
  • Coordinate swap of the default: (0,0), (0,.8), (.5,.8), (.5,.9), (1,.9)

Both orientations currently use post-step interpolation. A regression check comparing the flipped path with the default path's exchanged coordinates would catch this independently of image rendering or axis labels.

Lingua principale
Python
Stelle
5.1k
Fork
1.3k
Merge medio
1g 12h
PR unite (30g)
48

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/Cirq

Tutte le issue di quantumlib/Cirq

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.