Xanadu's python quantum programming library seems to have more intuitive optimisation at this point<p><a href="https://github.com/XanaduAI/strawberryfields" rel="nofollow">https://github.com/XanaduAI/strawberryfields</a>
Though it's Python and not Perl, and seems to take the whole thing more seriously—and, I imagine, usefully, though I'm not experienced enough to be able to judge from a glance—this post cannot go by without a mention of Damian Conway and his Quantum::Superpositions module (<a href="https://metacpan.org/pod/Quantum::Superpositions" rel="nofollow">https://metacpan.org/pod/Quantum::Superpositions</a>).