Skip to content

Update Satevector for Qiskit 1.0+ version compatibility#8

Open
Tabassumx wants to merge 2 commits into
aryashah2k:mainfrom
Tabassumx:patch-1
Open

Update Satevector for Qiskit 1.0+ version compatibility#8
Tabassumx wants to merge 2 commits into
aryashah2k:mainfrom
Tabassumx:patch-1

Conversation

@Tabassumx
Copy link
Copy Markdown

What changed?

  • Replaced old Aer.get_backend('statevector_simulator')
    with Statevector(qc) from qiskit.quantum_info

Why?

  • Old code throws NameError: name 'Aer' is not defined
    in Qiskit 1.0+
  • New code works on all Qiskit 1.0+ versions
  • No need to install separate qiskit-aer package

Tested on

  • Qiskit 1.0+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant