Skip to content

qiskit_pytest_helper

Quantum test helpers of the monorepo, on top of python_pytest_helper.

hypothesis_strategies holds the strategies of quantum states and qubit axes, assertions the comparisons with Qiskit's equality, circuits typed circuit helpers, propagation the simulation of phase propagators, and constants shared bounds.

Modules:

  • assertions –

    Assertions comparing quantum states and operators with Qiskit's equality.

  • circuits –

    Typed helpers to inspect and transpile circuits in unit tests.

  • constants –

    Bounds of the quantum strategies and tolerances of approximate protocols in tests.

  • hypothesis_strategies –

    Hypothesis strategies for quantum states and for axes representable by qubits.

  • propagation –

    Helpers to test sample-based phase propagators on the Aer simulator.