Message Boards Message Boards

0
|
382 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

QuantumOperator matrix form error message

Posted 26 days ago

When attempting to extract the "Matrix" form for some operators, I get the error message "TerminatedEvaluation[RecursionLimit][Matrix]". I don't recall this happening before. Either I wasn't paying attention before, or something has changed. See attached notebook. Can you please enlighten me? :<)

POSTED BY: Michael Ulrey
2 Replies

The recursion limit is from missing patterns for operators with no arguments. I've modified this to return a Failure in the development version of the paclet.

PacletInstall["https://www.wolfr.am/DevWQCF", ForceVersionInstall -> True]
<< Wolfram`QuantumFramework`
POSTED BY: Nikolay Murzin

Nikolay, Thanks for the information and the fix. I tried this again today, and I noticed that all of the calls to extract an operator matrix (that previously raised an error), now actually show a matrix. I guess that, based on your explanation concerning missing arguments being the culprit, that you have now put in some placeholder arguments (in case the user does not specify any)? That makes sense to me, but I just want to make sure that I understand what you did. Thanks :<) Mike

POSTED BY: Michael Ulrey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract