quantrs2-sim 0.1.3

Quantum circuit simulators for the QuantRS2 framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! # AutoParallelEngine - predicates Methods
//!
//! This module contains method implementations for `AutoParallelEngine`.
//!
//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)

use super::autoparallelengine_type::AutoParallelEngine;
use quantrs2_core::gate::GateOp;

impl AutoParallelEngine {
    /// Check if a gate is a rotation gate
    pub(super) fn is_rotation_gate(gate: &dyn GateOp) -> bool {
        let gate_str = format!("{gate:?}");
        gate_str.contains("RX") || gate_str.contains("RY") || gate_str.contains("RZ")
    }
}