quant_iron/components/mod.rs
1//! # Components
2//!
3//! This module contains the core components for quantum operations, including gates, measurements, and state management.
4//! It provides the necessary structures and traits to define quantum circuits and operations.
5//! - [State]: Represents the quantum state of a system, and allows for operations on that state.
6//! - [Gate](gate): Defines quantum gates that can be applied to qubits.
7//! - [Measurement](measurement): Provides functionality for quantum measurements in the X, Y, Z, and custom bases.
8//! - [Operator](operator): Represents quantum operators that can be applied to states.
9//! - [pauli_string]: Represents a string of Pauli operators with a coefficient, useful for defining Hamiltonians and other operations.
10
11pub mod gate;
12#[cfg(feature = "gpu")]
13pub(crate) mod gpu_context;
14pub mod measurement;
15pub mod operator;
16pub mod state;
17pub mod pauli_string;
18
19// Re-export important types for easier use within the crate
20pub use measurement::{MeasurementBasis, MeasurementResult};
21pub use state::{ChainableState, State};