Git Product home page Git Product logo

Comments (3)

agata-branczyk avatar agata-branczyk commented on June 11, 2024 1

Thanks for raising this question @HuangJunye. I propose adding the following to the explanatory material. Does it provide sufficient information to answer your question?

In general, the statevector simulator is useful for simulating ideal circuits, while the QASM simulator is useful for simulating circuits with noise to mimic a real noisy quantum computer. When running the entanglement forging module either on the QASM simulator or on real quantum hardware, several additional options are available: shots, bootstratp_trials, copysample_job_size, meas_error_mit, meas_error_shots, meas_error_refresh_period_minutes, zero_noise_extrap. These options can be specified in the EntanglementForgedConfig class (for more info, see the reference guide). Users can use the QASM simulator to test out these options before running them on real quantum hardware.

from prototype-entanglement-forging.

HuangJunye avatar HuangJunye commented on June 11, 2024

Thanks for working on this. What's the difference between the two simulators when we use QASM simulator without noise? I know that QASM is shot based so it will still have sampling noise while statevector obtain probabilities from the amplitudes of the statevector. But practically when you do quantum chemistry simulation, when should a user use statevector simulator?

from prototype-entanglement-forging.

agata-branczyk avatar agata-branczyk commented on June 11, 2024

@HuangJunye How about this?

Statevector simulation is useful when we want to:

  1. get the exact values of energies (e.g. for chemistry problems) without any error bars (assuming there are no other sources of randomness)
  2. test the performance of an algorithm in the absence of shot noise (for VQE, there could be a difference between the trajectory of the parameters in the presence and absence of shot noise; in this case the statevector simulator can concretely provide an answer regarding the expressivity of a given ansatz without any uncertainty coming from shot noise)

QASM simulation is useful when:

  1. the system sizes are larger because the statevector simulator scales exponentially in system size and will not be useful beyond small systems
  2. simulating circuits with noise to mimic a real noisy quantum computer

When running the entanglement forging module either on the QASM simulator or on real quantum hardware, several additional options are available: shots, bootstrap_trials, copysample_job_size, meas_error_mit, meas_error_shots, meas_error_refresh_period_minutes, zero_noise_extrap. These options can be specified in the EntanglementForgedConfig class (for more info, see the reference guide). Users can use the QASM simulator to test out these options before running them on real quantum hardware.

Notes:

  • In the limit of infinite shots, the mean value of the QASM simulator will be equal to the value of the statevector simulator.
  • The QASM simulator also has a method that mimics the statevector simulator without shot noise as an alternative to statevector simulator.

from prototype-entanglement-forging.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.