From c1eb5014309724363cd10015361c2e8c6036f966 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 2 Jul 2024 16:27:23 -0400 Subject: [PATCH] Update crates/accelerate/src/euler_one_qubit_decomposer.rs Co-authored-by: John Lapeyre --- crates/accelerate/src/euler_one_qubit_decomposer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/accelerate/src/euler_one_qubit_decomposer.rs b/crates/accelerate/src/euler_one_qubit_decomposer.rs index 4dc7ea77287b..c32e8fc38065 100644 --- a/crates/accelerate/src/euler_one_qubit_decomposer.rs +++ b/crates/accelerate/src/euler_one_qubit_decomposer.rs @@ -994,7 +994,7 @@ pub fn optimize_1q_gates_decomposition( node.instruction .operation .matrix(&node.instruction.params) - .unwrap() + .expect("No matrix defined for operation") }) .fold( [