Guest User

Untitled

a guest
Jun 14th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  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'
Add Comment
Please, Sign In to add comment