cirq_aqt.aqt_device.AQTSimulator

A simulator for the AQT device.

num_qubits Number of qubits.
circuit Optional, circuit to be simulated. Last moment needs to be a measurement over all qubits with key 'm'
simulate_ideal If True, an ideal, noiseless, circuit will be simulated.
noise_dict A map from gate to noise to be applied after that gate. If None, uses a default noise model.

Methods

generate_circuit_from_list

View source

Generates a list of cirq operations from a json string.

The default behavior is to add a measurement to any qubit at the end of the circuit as there are no measurements defined in the AQT API.

Args
json_string json that specifies the sequence.

simulate_samples

View source

Samples the circuit.

Args
repetitions Number of times the circuit is simulated.

Returns
Result from Cirq.Simulator.

Raises
RuntimeError Simulate called without a circuit.