original_docstring: Determine number of independent amplitudes for singlet UCCSD
  
      Args:
          n_qubits(int): Number of qubits/spin-orbitals in the system
          n_electrons(int): Number of electrons in the reference state
  
      Returns:
          Number of independent parameters for singlet UCCSD with a single
          reference.
      
docstring: Determine number of independent amplitudes for singlet UCCSD
docstring_tokens: Determine number of independent amplitudes for singlet UCCSD
code: def uccsd_singlet_paramsize(n_qubits, n_electrons):
      """Determine number of independent amplitudes for singlet UCCSD
  
      Args:
          n_qubits(int): Number of qubits/spin-orbitals in the system
          n_electrons(int): Number of electrons in the reference state
  
      Returns:
          Number of independent parameters for singlet UCCSD with a single
          reference.
      """
      n_occupied = int(numpy.ceil(n_electrons / 2.))
      n_virtual = n_qubits / 2 - n_occupied
  
      n_single_amplitudes = n_occupied * n_virtual
      n_double_amplitudes = n_single_amplitudes ** 2
      return (n_single_amplitudes + n_double_amplitudes)
code_tokens: def uccsd_singlet_paramsize ( n_qubits , n_electrons ) : n_occupied = int ( numpy . ceil ( n_electrons / 2. ) ) n_virtual = n_qubits / 2 - n_occupied n_single_amplitudes = n_occupied * n_virtual n_double_amplitudes = n_single_amplitudes ** 2 return ( n_single_amplitudes + n_double_amplitudes )
short_docstring: Determine number of independent amplitudes for singlet UCCSD
short_docstring_tokens: Determine number of independent amplitudes for singlet UCCSD
comment: """Determine number of independent amplitudes for singlet UCCSD
  
      Args:
          n_qubits(int): Number of qubits/spin-orbitals in the system
          n_electrons(int): Number of electrons in the reference state
  
      Returns:
          Number of independent parameters for singlet UCCSD with a single
          reference.
      """