setKnownEffectToCircuit(circuitDefinition) {
        this.gate.knownCircuit = circuitDefinition;
        this.gate.knownCircuitNested = circuitDefinition.withDisabledReasonsForEmbeddedContext(0, new Map());
        this.gate._isDefinitelyUnitary = circuitDefinition.hasOnlyUnitaryGates();
        this.gate._stableDuration = circuitDefinition.stableDuration();
        this.gate.height = circuitDefinition.numWires;
        return this;
    }
Provides a circuit equivalent to the gate's effect, which can be used to simulate or analyze the gate.
@param {!CircuitDefinition} circuitDefinition
@returns {!GateBuilder}