Module: cirq_google.engine.virtual_engine_factory

Functions to instantiate SimulatedLocalEngines to simulate various Google Devices.

Functions

create_default_noisy_quantum_virtual_machine(...): Creates a virtual engine with a noisy simulator based on a processor id.

create_device_from_processor_id(...): Generates a cirq.Device for a given processor ID.

create_device_spec_from_processor_id(...): Generates a v2.device_pb2.DeviceSpecification for a given processor ID.

create_noiseless_virtual_engine_from_device(...): Creates an Engine object with a single processor backed by a noiseless simulator.

create_noiseless_virtual_engine_from_latest_templates(...): Creates a noiseless virtual engine based on current templates.

create_noiseless_virtual_engine_from_proto(...): Creates a noiseless virtual engine object from a device specification proto.

create_noiseless_virtual_engine_from_templates(...): Creates a noiseless virtual engine object from a device specification template.

create_noiseless_virtual_processor_from_proto(...): Creates a simulated local processor from a device specification proto.

create_noiseless_virtual_processor_from_template(...): Creates a simulated local processor from a device specification template.

load_median_device_calibration(...): Loads a median cirq_google.Calibration for the given device.

load_sample_device_zphase(...): Loads sample Z phase errors for the given device.

MEDIAN_CALIBRATIONS

{
 'rainbow': 'rainbow_2021_11_16_calibration.json',
 'weber': 'weber_2021_11_03_calibration.json'
}

MEDIAN_CALIBRATION_TIMESTAMPS

{
 'rainbow': 1637058415838,
 'weber': 1635923188204
}

METRICS_1Q ['single_qubit_p00_error', 'single_qubit_p11_error', 'single_qubit_readout_separation_error', 'parallel_p00_error', 'parallel_p11_error', 'single_qubit_rb_average_error_per_gate', 'single_qubit_rb_incoherent_error_per_gate', 'single_qubit_rb_pauli_error_per_gate']
METRICS_2Q ['two_qubit_sycamore_gate_xeb_average_error_per_cycle', 'two_qubit_sycamore_gate_xeb_pauli_error_per_cycle', 'two_qubit_sycamore_gate_xeb_incoherent_error_per_cycle', 'two_qubit_sqrt_iswap_gate_xeb_average_error_per_cycle', 'two_qubit_sqrt_iswap_gate_xeb_pauli_error_per_cycle', 'two_qubit_sqrt_iswap_gate_xeb_incoherent_error_per_cycle', 'two_qubit_parallel_sycamore_gate_xeb_average_error_per_cycle', 'two_qubit_parallel_sycamore_gate_xeb_pauli_error_per_cycle', 'two_qubit_parallel_sycamore_gate_xeb_incoherent_error_per_cycle', 'two_qubit_parallel_sqrt_iswap_gate_xeb_average_error_per_cycle', 'two_qubit_parallel_sqrt_iswap_gate_xeb_pauli_error_per_cycle', 'two_qubit_parallel_sqrt_iswap_gate_xeb_incoherent_error_per_cycle']
MOST_RECENT_TEMPLATES

{
 'rainbow': 'rainbow_2021_12_10_device_spec_for_grid_device.proto.txt',
 'weber': 'weber_2021_12_10_device_spec_for_grid_device.proto.txt'
}

PERFECT_T1_VALUE 1000000
T1_METRIC_NAME 'single_qubit_idle_t1_micros'
ZPHASE_DATA

{
 'rainbow': 'rainbow_2021_08_26_zphase.json',
 'weber': 'weber_2021_04_20_zphase.json'
}