pennylane-rigetti icon indicating copy to clipboard operation
pennylane-rigetti copied to clipboard

Update the lattices used in the documentation

Open antalszava opened this issue 5 years ago • 3 comments

The lattices used when creating a device based on the documentation seem to be outdated. For example:

>>> dev_qpu = qml.device('forest.qpu', device='Aspen-0-12Q-A', shots=1000)
  File "/anaconda3/lib/python3.7/site-packages/pyquil/api/_devices.py", line 147, in _get_raw_lattice_data
    res = get_json(session, f"{config.forest_url}/lattices/{lattice_name}")
  File "/anaconda3/lib/python3.7/site-packages/pyquil/api/_base_connection.py", line 54, in get_json
    raise parse_error(res)
pyquil.api._errors.UnknownApiError: Lattice with name 'Aspen-0-12Q-A' not found.

This is true for multiple lattices used on the Usage page when creating a device.

antalszava avatar Mar 31 '20 14:03 antalszava

Hmm, I'm not sure what the most satisfying solution is here. We could:

  1. Update the lattice name, but then there is a maintenance overhead

  2. Add a disclaimer below the codeblock

josh146 avatar Mar 31 '20 14:03 josh146

Yes, perhaps having option 2 to instruct the user to change the lattice name to one that is available based on the output of

import pyquil
pyquil.list_quantum_computers()

could be helpful. And then having a placeholder for the name could also be good because then the user wouldn't have the feeling that the command should work straight away.

antalszava avatar Mar 31 '20 15:03 antalszava

It might be good to align with the approach taken in the PyQuil documentation

josh146 avatar Mar 31 '20 15:03 josh146