PhaseFitEstimator cannot fit the signal from its own reduced sampling grid
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
- python
- Ambito
- quantum-computing
Direzione di ricerca
Inizia da PhaseFitEstimator.get_simulation_points e dal fit dell’ampiezza in openfermion/measurements/vpe_estimators.py; l’issue individua una discrepanza tra la griglia ridotta e la griglia predefinita a quattro punti del fit. Estendi il test esistente di campionamento di Pauli per eseguire il fit sulla griglia a due punti e conferma che restituisca il valore atteso di 0.6 senza un errore di broadcasting.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
For a two-eigenvalue Hamiltonian, PhaseFitEstimator.get_simulation_points(safe=False) returns two times, but the estimator cannot fit a signal measured at those times. Its amplitude fit reconstructs the default four-point grid, so even noiseless measurements fail when applying the reference phase shift.
import numpy as np
from openfermion.measurements.vpe_estimators import PhaseFitEstimator
energies = np.array([-1., 1.])
est = PhaseFitEstimator(energies)
for safe in (True, False):
t = est.get_simulation_points(safe=safe)
signal = np.exp(1j * np.outer(t, energies)) @ [0.2, 0.8]
print(est.get_expectation_value(signal))
At 34adf319 the four-point grid returns 0.6000000000000001, as expected from -1 × 0.2 + 1 × 0.8. The two-point grid raises ValueError: operands could not be broadcast together with shapes (2,) (4,). The two-point system here is full rank. The existing Pauli sampling test already checks that the reduced grid is [0, π/2]; extending coverage through the fit would catch the mismatch. It would be helpful for callers to be able to pass the sampled times (or the same sampling mode) into the fit.
- Lingua principale
- Python
- Stelle
- 1.7k
- Fork
- 438
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
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/OpenFermion
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
quantumlib/OpenFermion#1478 ·
-
Switch to Pyrefly for type checking instead of mypyForse già presa @rosspeili l’ha presa 133 giorni fa. Apertaa: health a: python e: experienced
quantumlib/OpenFermion#1399 · 6 commenti · 1 assegnatario ·
-
Add a CODEOWNERS fileForse di nuovo libera @mhucka l’ha presa 159 giorni fa e non c’è nessuna pull request aperta. Apertaa: devops e: maintainer
quantumlib/OpenFermion#1337 · 3 commenti · 1 assegnatario ·
-
Add workflow to run create-env-files.sh when Dependabot changes dependenciesForse già presa @rosspeili l’ha presa 142 giorni fa. Apertaa: devops e: experienced
quantumlib/OpenFermion#1332 · 4 commenti · 1 assegnatario ·
-
Remove global random seed used for testingForse già presa @SripriyaDevarapalli l’ha presa 54 giorni fa. Apertaa: performance a: python e: experienced no QC knowledge needed
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
quantumlib/OpenFermion#1060 · 6 commenti ·
Tutte le issue di quantumlib/OpenFermion
Issue simili
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwiseForse già presa @abdulwaarith0 l’ha presa oggi. Apertaneeds-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
MakazhanAlpamys/Soup#3690 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug data-types native-format
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ClickHouse/clickhouse-connect#1320 ·
I maintainer di solito rispondono entro 1 giorno
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobApertaaccepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
future-agi/future-agi#6392 ·
I maintainer di solito rispondono entro 1 giorno