qiskit/test/python/classical_function_compiler/dimacs
Luciano Bello 674a6e2898
Boolean expression object (#5830)
* added dymacs_oracle

* added dimacs_oracle

* added dimacs_oracle

* updated evaluate_bitstring

* simplify logic a bit

* added unittests

* clean up

* added logical_expression_oracle.py

* added comments and unittests

* clean up

* lint

* fix linting

* fixed based on the comments

* boolean expression

* docstring

* converter and dimacs support

* parity decomposition

* phase oracle

* boolean expression as a gate

* simulate to keep it like classical function

* objective_qubits from a phase oracle

* new api

* revert problem touching

* tests

* fixing test.python.classical_function_compiler.test_tweedledum2qiskit

* Update qiskit/circuit/library/__init__.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* revert

* fix simulate

* more testing

* change synth algo

* fixes #5666

* dependency

* linting linting

* circular impport

* testing phase oracle

* phase test

* msg

* similar testing

* lint

* maybe last lint cleaning

* moving docs

* lint

* more linting

* lint

* another lint

* lint!

* adapt test

* new test

* failing in linux

* remote debuging

* more debug

* new tweedledum

* more debugging

* false positive in pylint

* tweedledum==1.0.0b3

* organize HAS_TWEEDLEDUM flag

* linting

* check if the file exists

* release note

* remove state_qubits

* docstring

* no python highlighting?

* Apply suggestions from code review

import error with pinned version

* abstract class for classical elements

* abc

* cleaner Phaseoracle

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* now _build_from_boolean_expression

* ups

* from_dimacs

* MissingOptionalLibraryError

* abstract class should skip

* Update qiskit/circuit/library/phase_oracle.py

* some refactors

* lint

* Update qiskit/circuit/library/phase_oracle.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* reno

* Update releasenotes/notes/bool_expression_phaseoracle-1802be3016c83fa8.yaml

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* type hint

* Update qiskit/circuit/classicalfunction/boolean_expression.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* lint

* more typehints

* hints are getting out of control

* self.qreg

* 3.6

* fix missing whitespace

* lint

* ilnt

Co-authored-by: Atsushi Matsuo <MATSUOA@jp.ibm.com>
Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: a-matsuo <47442626+a-matsuo@users.noreply.github.com>
2021-03-31 18:11:32 +00:00
..
quinn.cnf Boolean expression object (#5830) 2021-03-31 18:11:32 +00:00
simple_v3_c2.cnf Boolean expression object (#5830) 2021-03-31 18:11:32 +00:00