From 6a5dcfff9855392c14b060c67c917a3438d42a07 Mon Sep 17 00:00:00 2001 From: Austin Adams Date: Mon, 10 Jul 2023 17:03:48 -0400 Subject: [PATCH] Make Euler angles publicly accessible for U operator --- include/tweedledum/Operators/Standard/U.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/tweedledum/Operators/Standard/U.h b/include/tweedledum/Operators/Standard/U.h index 36a9a6fd..1f9c3923 100644 --- a/include/tweedledum/Operators/Standard/U.h +++ b/include/tweedledum/Operators/Standard/U.h @@ -29,6 +29,21 @@ class U { return U(-theta_, -phi_, -lambda_); } + double theta() const + { + return theta_; + } + + double phi() const + { + return phi_; + } + + double lambda() const + { + return lambda_; + } + UMatrix2 const matrix() const { using namespace std::complex_literals;