We consider the problems of weighted constrained sampling and weighted model counting, where we are given a propositional formula and a weight for each world. The first problem consists of sampling worlds with a probability proportional to their weight given that the formula is satisfied. The latter is the problem of computing the sum of the weights of the models of the formula. Both have applications in many fields such as probabilistic reasoning, graphical models, statistical physics, statistics, and hardware verification. In this article, we propose quantum weighted constrained sampling (QWCS) and quantum weighted model counting (QWMC), two quantum algorithms for performing weighted constrained sampling and weighted model counting, respectively. Both are based on the quantum search/quantum model counting algorithms that are modified to take into account the weights. In the black box model of computation, where we can only query an oracle for evaluating the Boolean function given an assignment, QWCS requires O(2javax.xml.bind.JAXBElement@3251dd79javax.xml.bind.JAXBElement@3ff7e2a6+1/WMC) oracle calls, where n is the number of Boolean variables and WMC is the normalized between 0 and 1 weighted model count of the formula, while a classical algorithm has a complexity of Ω(1/WMC). QWMC takes Θ(2javax.xml.bind.JAXBElement@60bc8e92javax.xml.bind.JAXBElement@4ff595e9) oracle calss, while classically the best complexity is Θ(2n), thus achieving a quadratic speedup.

Quantum algorithms for weighted constrained sampling and weighted model counting

Riguzzi F.
Primo
2024

Abstract

We consider the problems of weighted constrained sampling and weighted model counting, where we are given a propositional formula and a weight for each world. The first problem consists of sampling worlds with a probability proportional to their weight given that the formula is satisfied. The latter is the problem of computing the sum of the weights of the models of the formula. Both have applications in many fields such as probabilistic reasoning, graphical models, statistical physics, statistics, and hardware verification. In this article, we propose quantum weighted constrained sampling (QWCS) and quantum weighted model counting (QWMC), two quantum algorithms for performing weighted constrained sampling and weighted model counting, respectively. Both are based on the quantum search/quantum model counting algorithms that are modified to take into account the weights. In the black box model of computation, where we can only query an oracle for evaluating the Boolean function given an assignment, QWCS requires O(2javax.xml.bind.JAXBElement@3251dd79javax.xml.bind.JAXBElement@3ff7e2a6+1/WMC) oracle calls, where n is the number of Boolean variables and WMC is the normalized between 0 and 1 weighted model count of the formula, while a classical algorithm has a complexity of Ω(1/WMC). QWMC takes Θ(2javax.xml.bind.JAXBElement@60bc8e92javax.xml.bind.JAXBElement@4ff595e9) oracle calss, while classically the best complexity is Θ(2n), thus achieving a quadratic speedup.
2024
Riguzzi, F.
File in questo prodotto:
File Dimensione Formato  
s42484-024-00209-5.pdf

accesso aperto

Descrizione: Full text editoriale
Tipologia: Full text (versione editoriale)
Licenza: Creative commons
Dimensione 916.45 kB
Formato Adobe PDF
916.45 kB Adobe PDF Visualizza/Apri
42484_2024_209_MOESM1_ESM (1).pdf

accesso aperto

Descrizione: supplementary material
Tipologia: Altro materiale allegato
Licenza: Creative commons
Dimensione 362.59 kB
Formato Adobe PDF
362.59 kB Adobe PDF Visualizza/Apri

I documenti in SFERA sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11392/2570710
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 1
social impact