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.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bqtmizer-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 31b9d138a3bb77d52dd032947ef1606beb5536d1098c28b6df39835a4e88d233
MD5 5c9932d52183bc6f46e0e6440f52b6d6
BLAKE2b-256 7dce470abaa220c8cf9b394963b6f3017bb472a7758e5965553391eb011f72a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bqtmizer-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3100c7d7616ba2da2f5a5943023d62f0f6796880102e577191d97cd59c83b05a
MD5 62e03efcc9cea3ae9c66719adc3d617c
BLAKE2b-256 de53b49bc822468bac581b6c94f2e249eb34d084b0a03a58b5ff81af43eb13cf

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