Skip to content

psiqit.math

Auto-generated documentation for the psiqit.math module.

psiqit.math

PSIQIT - Python Scientific Quantum Information Toolkit Mathematics Module

This module provides mathematical tools for quantum computing: - Calculus (derivatives, integrals, quantum derivatives) - ODE solvers (Euler, Runge-Kutta, adaptive methods) - PDE solvers (heat, wave, Schrödinger equations) - Quantum algebra (vectors, matrices, operators) - Symbolic mathematics (SymPy integration)

info()

Get information about the mathematics module

Returns:

Name Type Description
dict dict

Module information

Source code in psiqit\math\__init__.py
def info() -> dict:
    """
    Get information about the mathematics module

    Returns:
        dict: Module information
    """
    return {
        'module': 'psiqit.math',
        'version': __version__,
        'submodules': ['calculus', 'ode_solver', 'pde_solver', 'qalgebra', 'symbolic'],
        'exports': len(__all__),
    }

test()

Run basic tests for the mathematics module

Returns:

Name Type Description
dict dict

Test results

Source code in psiqit\math\__init__.py
def test() -> dict:
    """
    Run basic tests for the mathematics module

    Returns:
        dict: Test results
    """
    results = {}

    # Test constants
    try:
        from .qalgebra import PI, HBAR
        results['constants'] = PI > 0 and HBAR > 0
    except Exception as e:
        results['constants'] = str(e)

    return results