You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mahout.apache.org by "Trevor Grant (Jira)" <ji...@apache.org> on 2024/03/13 20:15:00 UTC

[jira] [Created] (MAHOUT-2201) Add execute method to qumat

Trevor Grant created MAHOUT-2201:
------------------------------------

             Summary: Add execute method to qumat
                 Key: MAHOUT-2201
                 URL: https://issues.apache.org/jira/browse/MAHOUT-2201
             Project: Mahout
          Issue Type: New Feature
          Components: qumat
            Reporter: Trevor Grant


Update notebook too

Currently works in notebook with
{color:#008000}# Also requires qiskit{color}
{color:#af00db}from{color}{color:#000000} qiskit {color}{color:#af00db}import{color}{color:#000000} execute{color}
{color:#008000}# needs to be added as a method...{color}
{color:#000000}job = execute(qumat.circuit, qumat.backend, shots={color}{color:#116644}1024{color}{color:#000000}) {color}{color:#008000}# Simulate the circuit 1024 times{color}


{color:#000000}result = job.result(){color}
{color:#000000}counts = result.get_counts(){color}

{color:#795e26}print{color}{color:#000000}({color}{color:#a31515}"Measurement Results:"{color}{color:#000000}, counts){color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)