Skip to content

feat(backends): add core types and abstractions#52

Open
dlyongemallo wants to merge 4 commits into
moth-quantum:mainfrom
dlyongemallo:add_core_types_and_abstractions
Open

feat(backends): add core types and abstractions#52
dlyongemallo wants to merge 4 commits into
moth-quantum:mainfrom
dlyongemallo:add_core_types_and_abstractions

Conversation

@dlyongemallo

Copy link
Copy Markdown

Preparations to turn quantum-audio platform-agnostic.

Depends on #48, #50, #51.

Introduce a framework-agnostic backend abstraction layer:
- `GateType` enum covering all gates used by quantumaudio schemes
- `GateOp` frozen dataclass for a single gate operation
- `CircuitSpec` with fluent builder API and Mottonen state-prep
  decomposition for non-negative real state vectors into RY + CX gates
- `UnifiedResult` normalising execution output across backends,
  with `to_qiskit_result()` bridge for backward compatibility
- Backend `ABC` and `BackendRegistry` singleton for provider discovery
- `is_available()` and `require()` helpers for optional dependencies
- Tests covering the above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant