pygsti.extras.devices.devcore

Functions for interfacing pyGSTi with external devices, including IBM Q and Rigetti

Module Contents

Functions

get_device_specs(devname)

basic_device_information(devname)

_get_dev_specs(devname)

edgelist(device)

create_clifford_processor_spec(device, one_qubit_gates, qubitsubset=None, removeedges=(), clifford_compilation_type='absolute', what_to_compile=('1Qcliffords', ), verbosity=0)

TODO: docstring

create_processor_spec(device, one_qubit_gates, qubitsubset=None, removeedges=())

todo

create_error_rates_model(caldata, device, one_qubit_gates, one_qubit_gates_to_native={}, calformat=None, model_type='TwirledLayers', idle_name=None)

calformat: 'ibmq-v2018', 'ibmq-v2019', 'rigetti', 'native'.

create_local_depolarizing_model(caldata, device, one_qubit_gates, one_qubit_gates_to_native={}, calformat=None, qubits=None)

todo

pygsti.extras.devices.devcore.get_device_specs(devname)
pygsti.extras.devices.devcore.basic_device_information(devname)
pygsti.extras.devices.devcore._get_dev_specs(devname)
pygsti.extras.devices.devcore.edgelist(device)
pygsti.extras.devices.devcore.create_clifford_processor_spec(device, one_qubit_gates, qubitsubset=None, removeedges=(), clifford_compilation_type='absolute', what_to_compile=('1Qcliffords',), verbosity=0)

TODO: docstring

Parameters
  • device

  • one_qubit_gates

  • qubitsubset

  • removeedges

  • clifford_compilation_type

  • what_to_compile

  • verbosity

Returns

QubitProcessorSpec

pygsti.extras.devices.devcore.create_processor_spec(device, one_qubit_gates, qubitsubset=None, removeedges=())

todo

clifford compilation type & what_to_compile = {‘paulieq’: (‘1Qcliffords’,),

‘absolute’: (‘paulis’, ‘1Qcliffords’)}

pygsti.extras.devices.devcore.create_error_rates_model(caldata, device, one_qubit_gates, one_qubit_gates_to_native={}, calformat=None, model_type='TwirledLayers', idle_name=None)

calformat: ‘ibmq-v2018’, ‘ibmq-v2019’, ‘rigetti’, ‘native’.

pygsti.extras.devices.devcore.create_local_depolarizing_model(caldata, device, one_qubit_gates, one_qubit_gates_to_native={}, calformat=None, qubits=None)

todo

Note: this model is * NOT * suitable for optimization: it is not aware that it is a local depolarization with non-independent error rates model.