// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. use qdk_sim::{error::QdkSimError, Pauli, Process, State}; #[test] fn pauli_channel_applies_correctly() -> Result<(), QdkSimError> { let x = Process::new_pauli_channel(Pauli::X); let state = State::new_stabilizer(1); let output_state = x.apply(&state)?; let tableau = output_state.get_tableau().unwrap(); tableau.assert_meas(0, true) }