bqskit.utils.test.types

This module contains functions to generate strategies from annotations.

Functions

invalid_type_test(func_to_test[, ...])

Decorator to generate invalid type tests.

type_annotation_to_invalid_strategy(annotation)

Convert a type annotation into an invalid hypothesis strategy.

type_annotation_to_valid_strategy(annotation)

Convert a type annotation into a hypothesis strategy.

valid_type_test(func_to_test)

Decorator to generate valid type tests.