<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="c_offering_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001758009</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001758009</identifier>
        </entity>
        <period>
            <startDate>2026-07-06</startDate>
            <endDate>2026-07-06</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <ffd:SubmissnTp contextRef="c_report" id="fee_001">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c_report" id="fee_002">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c_report" id="fee_003">0001758009</dei:EntityCentralIndexKey>
    <ffd:PrevslyPdFlg contextRef="c_offering_1" id="fee_004">false</ffd:PrevslyPdFlg>
    <ffd:OfferingTableNa contextRef="c_report" id="fee_005" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="c_report" id="fee_006">N/A</ffd:OffsetTableNa>
    <ffd:FormTp contextRef="c_report" id="fee_007">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c_report" id="fee_008">Quantum Computing Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c_offering_1" id="fee_009">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_1" id="fee_010">Common stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_1" id="fee_011">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_1"
      decimals="0"
      id="fee_012"
      unitRef="shares">13544946</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_013"
      unitRef="USD">9.4075</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_014"
      unitRef="USD">127424079.50</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_015"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_016"
      unitRef="USD">17597.27</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_017"
      unitRef="USD">127424079.50</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_018"
      unitRef="USD">17597.27</ffd:TtlFeeAmt>
    <ffd:NetFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_019"
      unitRef="USD">17597.27</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="fee_020">Pursuant to Rule 416 of the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement on Form S-8 (this &#x201c;Registration Statement&#x201d;) shall also cover any additional shares of common stock, par value $0.0001 per share (&#x201c;Common Stock&#x201d;) of Quantum Computing Inc. (the &#x201c;Registrant&#x201d;) that become issuable under the Registrant&#x2019;s 2022 Equity and Incentive Plan, as amended (the &#x201c;Plan&#x201d;) by reason of any stock dividend, stock split, recapitalization or other similar transaction effected without receipt of consideration that increases the number of outstanding shares of Common Stock.&lt;br/&gt;&lt;br/&gt;Estimated in accordance with Rules 457(c) and 457(h) of the Securities Act solely for the purpose of calculating the registration fee on the basis of $9.4075 per share, which is the average of the high and low prices of Common Stock on July 2, 2026, as reported on the Nasdaq Capital Market.&lt;br/&gt;&lt;br/&gt;Represents 13,544,946 shares of Common Stock issuable under the Plan. The Plan&#x2019;s share reserve was increased from 20,000,000 to 30,000,000 shares pursuant to an amendment approved by the Registrant&#x2019;s stockholders on June 24, 2026. Of the 30,000,000 shares authorized under the Plan, 16,455,054 were previously registered on the Registrant&#x2019;s Registration Statement on Form S-8 (File No. 333-286033) filed on March 21, 2025.</ffd:OfferingNote>
</xbrl>
