ppvm-traits 0.1.1

Core traits, the `Config` bundle and the single-qubit Pauli alphabet shared by the ppvm crates.
Documentation
1
2
3
4
5
6
7
8
9
10
// SPDX-FileCopyrightText: 2026 The PPVM Authors
// SPDX-License-Identifier: Apache-2.0

use crate::config::Config;

/// Controlled `RX` rotation.
pub trait CRx<T: Config> {
    /// Apply `CRX(θ)` with the given control and target.
    fn crx(&mut self, control: usize, target: usize, theta: T::Coeff);
}