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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bqtmizer-1.0.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bqtmizer-1.0.2.tar.gz
  • Upload date:
  • Size: 8.2 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.2.tar.gz
Algorithm Hash digest
SHA256 bb3e70315d379d46c01047000c7342ef3085498b50bc2218a2f1476798d30185
MD5 e1b970705c067b62625addaaef7d55a3
BLAKE2b-256 d68c23159c4c5ec2f0d478b0bfaf6c90914be9d5a0bca12f84e1dbe91ebf3e51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bqtmizer-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ee4078b8353f2e6b28940937b03904b0c9cf13665bc94bb8cc81ca77a754d2d
MD5 71dbe31a962f14d0b3ca3bbda79ab842
BLAKE2b-256 90588a10bb5647dc4e76a03f4bc654686f00a834c19950288fabb50b47cf7f03

See more details on using hashes here.

Supported by

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