q5m.js - Quantum Computing Library - v0.1.1
    Preparing search index...

    Interface CirqExportOptions

    Defines the options for exporting a circuit to Cirq Python code.

    interface CirqExportOptions {
        includeImports?: boolean;
        includeComments?: boolean;
        circuitVariableName?: string;
        qubitType?: "LineQubit" | "GridQubit";
        includeMeasurements?: boolean;
        includeSimulator?: boolean;
    }
    Index

    Properties

    includeImports?: boolean

    If true, includes import cirq statements. Defaults to true.

    includeComments?: boolean

    If true, includes comments in the generated Python code. Defaults to true.

    circuitVariableName?: string

    The variable name for the Cirq circuit object. Defaults to 'circuit'.

    qubitType?: "LineQubit" | "GridQubit"

    The type of qubits to use ('LineQubit' or 'GridQubit'). Defaults to 'LineQubit'.

    includeMeasurements?: boolean

    If true, includes measurement operations at the end of the circuit. Defaults to false.

    includeSimulator?: boolean

    If true, includes boilerplate code to run a simulation. Defaults to false.