7 votes

How to represent a statevector in Dirac notation form using Qiskit?

Use draw method with output parameter set to latex ...
3 votes
Accepted

get.statevector() error: Failed to load qobj: Duplicate key "statevector" in save instruction

When you call save_statevector() method to add SaveStatevector instruction to your circuit, you can specify a label. After ...
2 votes

get_statevector() not working with Qiskit Aer's statevector simulator

This is a supplement to Ohad's nice answer. I was confused about why the code I wrote produced different results for the two statevector simulators that I originally tried (one worked, one gave an ...
  • 33
2 votes
Accepted

get_statevector() not working with Qiskit Aer's statevector simulator

You should use the QuantumCircuit.save_statevector() method whenever you wish to take a "screenshot" of the system's statevector. This modification of ...
  • 1,237
1 vote
Accepted

ModuleNotFoundError when running Qiskit RNG

The last qiskit-rng is 0.2.2 from January 2021. It is unmaintained since then and their github repo is archived. Based on their ...
  • 4,264
1 vote
Accepted

ModuleNotFoundError: No module named 'qiskit_aer'

The namespace qiskit_aer was introduced in 0.11. Try pip install "qiskit-aer>=0.11.0" or ...
  • 4,264
1 vote
Accepted

AttributeError: 'list' object has no attribute 'values'

Result.get_counts() method returns a dictionary if the Job contains only one circuit. If, however, your job contains multiple ...
1 vote
Accepted

Insufficient memory to run circuit using the statevector simulator

I changed the simulator provided by IBM according to my current need (qbits=50) simulator1 = AerSimulator(method='matrix_product_state') It worked.
  • 181
1 vote

Seeding a stim.TableauSimulator

As of v1.9 there's no seed argument for the tableau simulator. I opened an issue to add one: https://github.com/quantumlib/Stim/issues/345
  • 24.8k
1 vote
Accepted

How does the Active Space Transform work theoretically?

The inactive Fock operator is the outcome of downfolding the inactive orbitals into the active space. This is explained in quite some detail in various quantum chemistry textbooks. A short summary of ...
  • 176

Only top scored, non community-wiki answers of a minimum length are eligible