Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMP: Info #271: omp_set_nested routine deprecated #1751

Closed
squashcap opened this issue Mar 20, 2023 · 0 comments · Fixed by #1752
Closed

OMP: Info #271: omp_set_nested routine deprecated #1751

squashcap opened this issue Mar 20, 2023 · 0 comments · Fixed by #1752
Labels
bug Something isn't working

Comments

@squashcap
Copy link

Informations

  • Qiskit Aer version: 0.11.2
  • Python version: 3.10.4
  • Operating system: 13.2.1

What is the current behavior?

Deprecation warning

Steps to reproduce the problem

import qiskit
from qiskit_experiments.library import StateTomography

# For simulation
from qiskit.providers.aer import AerSimulator

import numpy as np

qc_bell = qiskit.QuantumCircuit(2)
qc_bell.h(0)
qc_bell.cx(0, 1)

#Simulate the outcome
qc_bell.save_statevector()          
qobj = qiskit.assemble(qc_bell)     
sim = qiskit.Aer.get_backend('aer_simulator') 

sim.options.max_parallel_experiments=3  # Commenting out line this removes warning

result = sim.run(qobj).result() 


# QST Experiment
qstexp1 = StateTomography(qc_bell)
shotVal = 1e2
qstdata1 = qstexp1.run(sim, shots=shotVal, seed_simulation=100).block_for_results()

What is the expected behavior?

No warning

Suggested solutions

Warning suggests use omp_set_max_active_levels instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant