From 4b0334f95c6064b356f3f797e6271c5f588896ca Mon Sep 17 00:00:00 2001 From: Agustin Borgna Date: Mon, 26 Feb 2024 11:57:58 +0000 Subject: [PATCH] Add docs --- src/circuit_json.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/circuit_json.rs b/src/circuit_json.rs index 6047ce4..77da8b0 100644 --- a/src/circuit_json.rs +++ b/src/circuit_json.rs @@ -198,7 +198,11 @@ pub enum OpBox { id: BoxID, /// The classical basis state permutation. permutation: Permutation, + // Synthesis strategy. See [`ToffoliBoxSynthStrat`]. strat: ToffoliBoxSynthStrat, + // The rotation axis of the multiplexors used in the decomposition. Can + // be either `Rx` or `Ry`. Only applicable to the + // [`ToffoliBoxSynthStrat::Matching`] strategy. Default to `Ry`. #[serde(skip_serializing_if = "Option::is_none")] #[serde(default)] rotation_axis: Option,