daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import qiskit.extensions.simulator      # access simulator-specific commands
  2. bell_circ.snapshot('1')                 # save this snapshot in slot '1'
  3. ghz_circ = bell_circ + cnot_circ        # do other things after the snapshot
  4. result = execute(ghz_circ, 'local_statevector_simulator').result()
  5. result.get_snapshot('1')                # retrieve the snapshot from slot '1'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top