Azure Quantum
An Azure service that provides quantum computing and optimization solutions.
71 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am trying to run this tutorial here, but if i run the python script with the code shown there
logical_counts = LogicalCounts({
'numQubits': 12581,
'tCount': 12,
'rotationCount': 12,
'rotationDepth': 12,
'cczCount': 3731607428,
'measurementCount': 1078154040})
logical_counts.estimate(params)
I get the following error: NameError: name 'LogicalCounts' is not defined.
Any suggestions how to fix that?
It looks like the LogicalCounts
class is part of the Azure Quantum library, which you need to import before using it. Here’s how you can fix the error:
pip install azure-quantum
LogicalCounts
class from the appropriate module. Based on the tutorial, it should look something like this: from azure.quantum import LogicalCounts
Try this and let me know if you have any questions in the comments.