pub struct VqeConfig {
pub hamiltonian: Hamiltonian,
pub num_qubits: u32,
pub ansatz_depth: u32,
pub max_iterations: u32,
pub convergence_threshold: f64,
pub learning_rate: f64,
pub seed: Option<u64>,
}Expand description
Configuration for a VQE run.
Fields§
§hamiltonian: HamiltonianThe Hamiltonian whose ground-state energy we seek.
num_qubits: u32Number of qubits in the ansatz circuit.
ansatz_depth: u32Number of ansatz layers (depth). Each layer contributes
2 * num_qubits parameters (Ry + Rz per qubit).
max_iterations: u32Maximum number of classical optimizer iterations.
convergence_threshold: f64Stop early when the absolute energy change between successive iterations falls below this threshold.
learning_rate: f64Step size for gradient descent.
seed: Option<u64>Optional RNG seed for reproducible simulation.
Auto Trait Implementations§
impl Freeze for VqeConfig
impl RefUnwindSafe for VqeConfig
impl Send for VqeConfig
impl Sync for VqeConfig
impl Unpin for VqeConfig
impl UnsafeUnpin for VqeConfig
impl UnwindSafe for VqeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more