Skip to main content

BQTmizer: A Tool for Test Case Minimization with Quantum Annealing

Project description

BQTmizer: A Tool for Test Case Minimization with Quantum Annealing

Description

Our innovative tool harnesses the power of quantum annealing (QA) to address large-scale real-world test case minimization (TCM) challenges. BQTmizer is designed to select the smallest possible test suite while ensuring that all testing objectives are met.

As a hybrid solution, it integrates bootstrap sampling techniques to optimize qubit usage in QA hardware. BQTmizer enhances your testing process, making it faster, smarter, and more efficient.

Installation

pip install bqtmizer

Example Usage

The dataset of the original test suite should be provided by a CSV file, where each column represents a property of test case and each row represents a test case.

Effectiveness and cost properties should be specified.

Users can create an account in the D-Wave Leap platform: https://cloud.dwavesys.com/ and paste the token here to run quantum annealing.

Users should specify the weights for each property, including for the objective of minimizing the number of test cases, using the key "num".

Users can specify the subproblem size N and coverage percentage beta.

from bqtmizer import bqtmizer

weights_dict = {"time":1/3, "cost":1/3, "num":1/3}
result = bqtmizer("../dataset/PaintControl_TCM.csv", ["rate"], ["time"], "xxx", weights=weights_dict, N=30, beta=0.9)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bqtmizer-1.0.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

bqtmizer-1.0.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file bqtmizer-1.0.0.tar.gz.

File metadata

  • Download URL: bqtmizer-1.0.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for bqtmizer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9bb7181d8425a073c959ef1ecb67366e9ec33569f0d4bd2b20c6ed01d0fa90cd
MD5 3cfeb3dc10069cc50e64b75840f8eb5d
BLAKE2b-256 9d6ac05ed10ee1df2d83792f010b2c2a7cec0191e76735d90b7bad1416bbb085

See more details on using hashes here.

File details

Details for the file bqtmizer-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bqtmizer-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for bqtmizer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f368c39ec80be53fa8a86577548efa94cda66aedce0d6a4269d7fa818f8c7791
MD5 e593e86bc6a6d2e053ee091cbd96dcd8
BLAKE2b-256 8ce1b9cdf9f9d61a29c4d21a38fbdf4643934894f6154ef1fd0f9fab5b80e291

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page