def test_ghz(simulator_arn, aws_session, s3_destination_folder): num_qubits = 50 circuit = _ghz(num_qubits) device = AwsDevice(simulator_arn, aws_session) no_result_types_testing( circuit, device, {"shots": SHOTS, "s3_destination_folder": s3_destination_folder}, {"0" * num_qubits: 0.5, "1" * num_qubits: 0.5}, )
def test_qft_iqft_h(simulator_arn, aws_session, s3_destination_folder): num_qubits = 24 h_qubit = random.randint(0, num_qubits - 1) circuit = _inverse_qft(_qft(Circuit().h(h_qubit), num_qubits), num_qubits) device = AwsDevice(simulator_arn, aws_session) no_result_types_testing( circuit, device, {"shots": SHOTS, "s3_destination_folder": s3_destination_folder}, {"0" * num_qubits: 0.5, "0" * h_qubit + "1" + "0" * (num_qubits - h_qubit - 1): 0.5}, )