Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions include/tweedledum/Operators/Standard/U.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down