Skip to content

moth-quantum/hybrid-practices-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hybrid Demo Architecture

Both stateful and stateless versions are different wrappers of the same computational logic for different interfaces.

Structure

  • stateless/core_functions.py - Stable interface for production use
  • stateful/stateful.py - Rapid interface for experimentation
  • stateful/better_stateful.py - Improved stateful version using helpers
  • stateful/helpers.py - Extracted logic for easy porting

Concept

Same computational core, different wrappers:

  • Stateful: Rapid prototyping interface with features like obj + obj2
  • Stateless: Stable interface with explicit parameters for production reliability

Flow: StatefulObjecthelpers.pystateless/core_functions.py

Use Cases

  1. Start with object - Begin development with stateful objects for rapid prototyping
  2. Extract generic function outside - Move computational logic to helpers for direct porting to production
  3. Translation team orchestrates workflow - Use stateless functions for production with stateful as reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages