cirq_aqt.aqt_device.AQTSimulator
See Stable
See Nightly
A simulator for the AQT device.
cirq_aqt . aqt_device . AQTSimulator (
num_qubits : int ,
circuit : cirq . Circuit = cirq . Circuit (),
simulate_ideal : bool = False ,
noise_dict : ( dict | None ) = None
)
Args
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
generate_circuit_from_list (
json_string : str
) -> None
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
simulate_samples (
repetitions : int
) -> cirq . Result
Samples the circuit.
Args
repetitions
Number of times the circuit is simulated.
Returns
Result from Cirq.Simulator.
Raises
RuntimeError
Simulate called without a circuit.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-08 UTC."],[],[]]